Class MonoBehaviourComponentMenuAttribute
Used to define the menu item and they type of MonoBehaviour component it will add.
Inherited Members
Namespace: Unity.MARS.Attributes
Assembly: Unity.MARS.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
[MovedFrom("Unity.MARS")]
public sealed class MonoBehaviourComponentMenuAttribute : ComponentMenuAttribute
Constructors
MonoBehaviourComponentMenuAttribute(Type, string)
Create an individual Menu item that is connected to MonoBehaviour component type.
Declaration
public MonoBehaviourComponentMenuAttribute(Type componentType, string menuItem)
Parameters
Type | Name | Description |
---|---|---|
Type | componentType | Type of MonoBehaviour component to add. |
string | menuItem | Menu path for the item. |