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

    Class ComponentMenuAttribute

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

    Inheritance
    Object
    Attribute
    ComponentMenuAttribute
    MonoBehaviourComponentMenuAttribute
    Namespace: Unity.MARS
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    public abstract class ComponentMenuAttribute : Attribute, _Attribute

    Constructors

    ComponentMenuAttribute(Type, String)

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

    Declaration
    protected ComponentMenuAttribute(Type componentType, string menuItem)
    Parameters
    Type Name Description
    Type componentType

    Type of component to add.

    String menuItem

    Menu path for the item.

    Fields

    componentType

    Type of component the menu will add.

    Declaration
    public readonly Type componentType
    Field Value
    Type Description
    Type

    menuItem

    The menu item path.

    Declaration
    public readonly string menuItem
    Field Value
    Type Description
    String
    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