Class ComponentEditorAttribute | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class ComponentEditorAttribute

    Tells the component editor which run-time type the editor is for.

    Inheritance
    Object
    Attribute
    ComponentEditorAttribute
    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023