Fusion editor attribute for selectively drawing/hiding fields. Condition member can be a property, field or method (with a return value). More...
Inherits DoIfAttribute.
Public Member Functions | |
DrawIfAttribute (string conditionMemberName) | |
Constructor. More... | |
DrawIfAttribute (string conditionMemberName, bool compareToValue) | |
Constructor. More... | |
DrawIfAttribute (string conditionMemberName, double compareToValue) | |
Constructor. More... | |
Public Member Functions inherited from DoIfAttribute | |
DoIfAttribute (string conditionMemberName) | |
Base Constructor. More... | |
DoIfAttribute (string conditionMemberName, bool compareToValue) | |
Base Constructor. More... | |
DoIfAttribute (string conditionMemberName, double compareToValue) | |
Base Constructor. More... | |
Public Attributes | |
bool | Hide |
Instructs the attribute completely hide the field if not draw, rather than the default of just disabling it. More... | |
Public Attributes inherited from DoIfAttribute | |
DoIfCompareOperator | Compare |
double | CompareToValue |
string | ConditionMember |
Fusion editor attribute for selectively drawing/hiding fields. Condition member can be a property, field or method (with a return value).
Value of condition method is converted to a long. Null = 0, False = 0, True = 1, Unity Object = InstanceId
DrawIfAttribute | ( | string | conditionMemberName, |
double | compareToValue | ||
) |
Constructor.
conditionMemberName | Condition member can be a property, field or method (with a return value). |
Value of condition method is converted to a long. Null = 0, False = 0, True = 1, Unity Object = InstanceId
compareToValue | The value to compare the member value against. |
hide | How the field should be hidden (disabled or removed) |
compare | How the condition member value and compareToValye will be evaluated. |
DrawIfAttribute | ( | string | conditionMemberName, |
bool | compareToValue | ||
) |
Constructor.
conditionMemberName | Condition member can be a property, field or method (with a return value). |
Value of condition method is converted to a long. Null = 0, False = 0, True = 1, Unity Object = InstanceId
compareToValue | The value to compare the member value against. |
compare | How the condition member value and compareToValye will be evaluated. |
DrawIfAttribute | ( | string | conditionMemberName | ) |
Constructor.
conditionMemberName | Condition member can be a property, field or method (with a return value). |
Value of condition method is converted to a long. Null = 0, False = 0, True = 1, Unity Object = InstanceId
hide | How the field should be hidden (disabled or removed) |
compare | How the condition member value and compareToValye will be evaluated. |
bool Hide |
Instructs the attribute completely hide the field if not draw, rather than the default of just disabling it.