Class MainMenuItemAttribute | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class MainMenuItemAttribute

    Attribute used to tag items (tools, actions, etc) that can be added to VR menus

    Inheritance
    Object
    Attribute
    MainMenuItemAttribute
    Namespace: UnityEditor.Experimental.EditorVR
    Syntax
    public class MainMenuItemAttribute : Attribute, _Attribute

    Constructors

    MainMenuItemAttribute(Boolean)

    Custom constructor for hiding item from the main menu

    Declaration
    public MainMenuItemAttribute(bool shown)
    Parameters
    Type Name Description
    Boolean shown

    MainMenuItemAttribute(String, String, String, Type)

    Constructor

    Declaration
    public MainMenuItemAttribute(string name, string sectionName, string description, Type tooltipType = null)
    Parameters
    Type Name Description
    String name

    Display name of this tool, action, workspace, etc.

    String sectionName

    Section to place this tool, action, workspace, etc.

    String description

    Description of this tool, action, workspace, etc.

    Type tooltipType

    (Optional) Tooltip type if a tooltip is needed

    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