Class MainMenuItemAttribute | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX