Class CreateConnectionMenuItemAttribute
An attribute placed on Connection implementations to specify where the connection appears in the create connection menu.
Namespace: Unity.LiveCapture
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class CreateConnectionMenuItemAttribute : MenuPathAttribute, _Attribute
Constructors
CreateConnectionMenuItemAttribute(String, Int32)
Creates a new CreateConnectionMenuItemAttribute instance.
Declaration
public CreateConnectionMenuItemAttribute(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". |
Int32 | 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. |