Version: 2023.1

CustomEditor

class in UnityEditor

切换到手册

描述

Tells an Editor class which run-time type it's an editor for.

When you make a custom editor for a component, put this attribute on the editor class.

To set which Editor classes are active for the current Render Pipeline Asset, add a SupportedOnRenderPipelineAttribute underneath the attribute.

See Also: Editor class, SupportedOnRenderPipelineAttribute.

变量

isFallback如果为 true,则仅在所有非回退编辑器均不匹配时匹配此编辑器。默认为 false。

构造函数

CustomEditor定义自定义编辑器类可以编辑的对象类型。