CustomEditor
Tells an Editor class which run-time type it's an editor for.
Read time 3 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: Attribute
- Implements: _Attribute
public class CustomEditor : Attribute, _Attribute
Remarks
When you make a custom editor for a component, put this attribute on the editor class.
To set which classes are active for the current Render Pipeline Asset, add a SupportedOnRenderPipelineAttribute underneath the attribute.
EditorAdditional Resources: Editor class, SupportedOnRenderPipelineAttribute.
Constructors
Constructor | Description |
|---|---|
| CustomEditor(System.Type) | Defines which object type the custom editor class can edit. |
| CustomEditor(System.Type,System.Boolean) | Defines which object type the custom editor class can edit. |
Properties
Property | Description |
|---|---|
| isFallback | If true, match this editor only if all non-fallback editors do not match. Defaults to false. |