docs.unity3d.com
    显示 / 隐藏目录

    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
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)