Class ComponentMenuAttribute
Used to define the menu item and the type of component it will add.
Namespace: Unity.MARS
Syntax
[AttributeUsage(AttributeTargets.Class)]
public abstract class ComponentMenuAttribute : Attribute, _Attribute
Constructors
ComponentMenuAttribute(Type, String)
Create an individual Menu item that is connected to component type.
Declaration
protected ComponentMenuAttribute(Type componentType, string menuItem)
Parameters
Type | Name | Description |
---|---|---|
Type | componentType | Type of component to add. |
String | menuItem | Menu path for the item. |
Fields
componentType
Type of component the menu will add.
Declaration
public readonly Type componentType
Field Value
Type | Description |
---|---|
Type |
menuItem
The menu item path.
Declaration
public readonly string menuItem
Field Value
Type | Description |
---|---|
String |