Class ComponentMenuAttribute
Used to define the menu item and the type of component it will add.
Inherited Members
Namespace: Unity.MARS.Attributes
Assembly: Unity.MARS.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
[MovedFrom("Unity.MARS")]
public abstract class ComponentMenuAttribute : 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 |