Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CustomEditor

Defines which object type the custom editor class can edit.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor

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.