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

    Class MonoBehaviourComponentMenuAttribute

    Used to define the menu item and they type of MonoBehaviour component it will add.

    Inheritance
    Object
    Attribute
    ComponentMenuAttribute
    MonoBehaviourComponentMenuAttribute
    Inherited Members
    ComponentMenuAttribute.componentType
    ComponentMenuAttribute.menuItem
    Namespace: Unity.MARS
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class MonoBehaviourComponentMenuAttribute : ComponentMenuAttribute, _Attribute

    Constructors

    MonoBehaviourComponentMenuAttribute(Type, String)

    Create an individual Menu item that is connected to MonoBehaviour component type.

    Declaration
    public MonoBehaviourComponentMenuAttribute(Type componentType, string menuItem)
    Parameters
    Type Name Description
    Type componentType

    Type of MonoBehaviour component to add.

    String menuItem

    Menu path for the item.

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