Class MenuPathAttribute
An attribute placed to describe a menu path.
Namespace: Unity.LiveCapture
Assembly: Unity.LiveCapture.dll
Syntax
public abstract class MenuPathAttribute : Attribute
Remarks
This is used similarly to the Menu
Constructors
MenuPathAttribute(string, int)
Creates a new Menu
Declaration
protected MenuPathAttribute(string itemName, int priority = 0)
Parameters
Type | Name | Description |
---|---|---|
string | itemName | The menu item represented like a path name. For example, the menu item could be "Sub Menu/Action". |
int | priority | The order by which the menu items are displayed. Items in the same sub menu have a separator placed between them if their priority differs by more than 10. |
Properties
ItemName
The menu item represented like a path name. For example, the menu item could be "Sub Menu/Action".
Declaration
public string ItemName { get; }
Property Value
Type | Description |
---|---|
string |
Priority
The order by which the menu items are displayed. Items in the same sub menu have a separator placed between them if their priority differs by more than 10.
Declaration
public int Priority { get; }
Property Value
Type | Description |
---|---|
int |