Class MainMenuItemAttribute
Attribute used to tag items (tools, actions, etc) that can be added to VR menus
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 |