Attribute for use on Fusion.Behaviour classes. Automatically draws a warning box in the inspector if the conditions are met. More...
Inherits BehaviourActionAttribute.
Public Member Functions | |
BehaviourWarnAttribute (string warnText, string conditionMember) | |
Define a ButtonBehaviourAction. More... | |
![]() | |
BehaviourActionAttribute (string conditionMember=null, ActionFlags flags=ActionFlags.ShowAtNotRuntime|ActionFlags.ShowAtRuntime) | |
Define a BehaviourAction, with the action being the method this attribute is attached to. More... | |
Additional Inherited Members | |
![]() | |
enum class | ActionFlags |
Conditions flags for when this action should run. More... | |
![]() | |
ActionFlags | ConditionFlags |
Specific flags for when this element should be displayed. More... | |
string | ConditionMember |
string | ExecuteMethod |
![]() | |
BehaviourActionAttribute (string executeMethod=null, string conditionMember=null, ActionFlags flags=ActionFlags.ShowAtNotRuntime|ActionFlags.ShowAtRuntime) | |
Define a BehaviourAction. More... | |
Attribute for use on Fusion.Behaviour classes. Automatically draws a warning box in the inspector if the conditions are met.
BehaviourWarnAttribute | ( | string | warnText, |
string | conditionMember | ||
) |
Define a ButtonBehaviourAction.
warnText | The text that will be shown in the warning box. |
conditionMember | The name of the member (in the same class) to evaluate, to determine if the action should be performed. Typically null, as the action method can have its own logic. This member can be a property, field or method. The return value of any of these is converted into a double. True = 1, False = 0. Null = 0. |