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

    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.

    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