Class AddStateMenuAttribute
Applied to State to make it visible to editor scripts.
Implements
Inherited Members
Namespace: LobsterFramework.AI
Assembly: LobsterFramework.dll
Syntax
[RegisterInitialization(0, AttributeType = InitializationAttributeType.Editor)]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class AddStateMenuAttribute : InitializationAttribute, _Attribute
Constructors
| Improve this Doc View SourceAddStateMenuAttribute(string)
Declaration
public AddStateMenuAttribute(string menuPath = "")
Parameters
Type | Name | Description |
---|---|---|
string | menuPath | The path leading to this item in the menu |
Methods
| Improve this Doc View SourceInit(Type)
Perform initialization tasks
Declaration
protected override void Init(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The class type this attribute is applied on |
Overrides
| Improve this Doc View SourceIsCompatible(Type)
Declaration
public static bool IsCompatible(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
bool |