Editor attribute for selective editor rendering. Condition member can be a property, field or method (with a return value).
More...
Inherits DecoratingPropertyAttribute.
Inherited by DrawIfAttribute, ErrorIfAttribute, and WarnIfAttribute.
|
|
double | _doubleValue |
| | The double value to compare against.
|
|
bool | _isDouble |
| | Is the value to compare against a double?
|
|
long | _longValue |
| | The long value to compare against.
|
|
CompareOperator | Compare |
| | The comparison operator to use.
|
|
string | ConditionMember |
| | Condition member to evaluate.
|
|
bool | ErrorOnConditionMemberNotFound = true |
| | If true, an error will be thrown if the condition member is not found.
|
|
| | DoIfAttributeBase (string conditionMember, bool compareToValue, CompareOperator compare) |
| | Initializes a new instance with a boolean value to compare against.
|
| | DoIfAttributeBase (string conditionMember, double compareToValue, CompareOperator compare) |
| | Initializes a new instance with a double value to compare against.
|
| | DoIfAttributeBase (string conditionMember, long compareToValue, CompareOperator compare) |
| | Initializes a new instance with a long value to compare against.
|
|
| DecoratingPropertyAttribute (bool applyToCollection=false) |
| | Initializes a new instance with the default order.
|
|
| DecoratingPropertyAttribute (int order, bool applyToCollection=false) |
| | Initializes a new instance with the specified order.
|
|
|
| PropertyAttribute (bool applyToCollection=false) |
|
const int | DefaultOrder = -10000 |
| | The default order of the attribute.
|
|
new bool | applyToCollection [get] |
Editor attribute for selective editor rendering. Condition member can be a property, field or method (with a return value).
Value of condition method is converted to a long or a double. null = 0, false = 0, true = 1, Unity Object = InstanceId
◆ DoIfAttributeBase() [1/3]
| DoIfAttributeBase |
( |
string | conditionMember, |
|
|
double | compareToValue, |
|
|
CompareOperator | compare ) |
|
protected |
Initializes a new instance with a double value to compare against.
- Parameters
-
| conditionMember | |
| compareToValue | |
| compare | |
◆ DoIfAttributeBase() [2/3]
| DoIfAttributeBase |
( |
string | conditionMember, |
|
|
long | compareToValue, |
|
|
CompareOperator | compare ) |
|
protected |
Initializes a new instance with a long value to compare against.
- Parameters
-
| conditionMember | |
| compareToValue | |
| compare | |
◆ DoIfAttributeBase() [3/3]
| DoIfAttributeBase |
( |
string | conditionMember, |
|
|
bool | compareToValue, |
|
|
CompareOperator | compare ) |
|
protected |
Initializes a new instance with a boolean value to compare against.
- Parameters
-
| conditionMember | |
| compareToValue | |
| compare | |