Class MonoBehaviourComponentMenuAttribute
Used to define the menu item and they type of MonoBehaviour component it will add.
Namespace: Unity.MARS
Syntax
[AttributeUsage(AttributeTargets.Class)]
public sealed class MonoBehaviourComponentMenuAttribute : ComponentMenuAttribute, _Attribute
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. |