Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CustomEditor

Tells an Editor class which run-time type it's an editor for.
Read time 3 minutesLast updated 5 days ago

Definition

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
Editor
classes are active for the current Render Pipeline Asset, add a SupportedOnRenderPipelineAttribute underneath the attribute.
Additional 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

isFallbackIf true, match this editor only if all non-fallback editors do not match. Defaults to false.

Inheritance

Inherited Members