Class ComponentEditorAttribute
Tells the component editor which run-time type the editor is for.
Namespace: Unity.MARS
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class ComponentEditorAttribute : Attribute, _Attribute
Constructors
ComponentEditorAttribute(Type, Boolean)
Tells the component editor which run-time type the editor is for.
Declaration
public ComponentEditorAttribute(Type componentType, bool editorForChildClasses = false)
Parameters
Type | Name | Description |
---|---|---|
Type | componentType | The run-time type. |
Boolean | editorForChildClasses | If true, child classes of inspectedType will also show this editor. Defaults to false. |
Fields
ComponentType
The run-time type.
Declaration
public readonly Type ComponentType
Field Value
Type | Description |
---|---|
Type |
EditorForChildClasses
If child classes of inspectedType will also show this editor.
Declaration
public readonly bool EditorForChildClasses
Field Value
Type | Description |
---|---|
Boolean |