文档

Unity Engine

Unity Engine

CustomEditor

Defines which object type the custom editor class can edit.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

CustomEditor(Type)

Defines which object type the custom editor class can edit.
public CustomEditor(Type inspectedType)

Parameters

inspectedType

Type that this editor can edit.

Remarks

Additional Resources: Editor class.

CustomEditor(Type, bool)

Defines which object type the custom editor class can edit.
public CustomEditor(Type inspectedType, bool editorForChildClasses)

Parameters

inspectedType

Type that this editor can edit.

editorForChildClasses

If true, child classes of inspectedType will also show this editor. Defaults to false.

Remarks

Additional Resources: Editor class.