Applied to WeaponStat to make it visible to editor scripts
Inheritance
AddWeaponStatMenuAttribute
Assembly: LobsterFramework.dll
[RegisterInitialization(0, AttributeType = InitializationAttributeType.Editor)]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class AddWeaponStatMenuAttribute : InitializationAttribute, _Attribute
Constructors
|
Improve this Doc
View Source
Declaration
public AddWeaponStatMenuAttribute(string menuPath = "")
Parameters
Type |
Name |
Description |
string |
menuPath |
The path leading to this item in the menu
|
Fields
|
Improve this Doc
View Source
Declaration
public static Dictionary<Type, Texture2D> icons
Field Value
|
Improve this Doc
View Source
Declaration
public static HashSet<Type> types
Field Value
Methods
|
Improve this Doc
View Source
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 Source
Declaration
public static bool IsCompatible(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Implements