Attribute draws a property when a given condition is true.
More...
|
| ConditionalDrawAttribute (string boolCondition) |
| ConditionalAttribute that requires a serialized boolean field to be true. More...
|
|
| ConditionalDrawAttribute (string condition, object value, bool isEqual=true) |
| ConditionalAttribute that requires a serialized field named condition to be equal or not equal to value. More...
|
|
|
string | Condition [get] |
| The serialized field to check. More...
|
|
object | Value [get] |
| The value to compare the Condition field to. More...
|
|
bool | IsEqual [get] |
| Whether the value of the condition field should be equal to the given value in order to draw. More...
|
|
Attribute draws a property when a given condition is true.
◆ ConditionalDrawAttribute() [1/2]
Infohazard.Core.ConditionalDrawAttribute.ConditionalDrawAttribute |
( |
string |
boolCondition | ) |
|
ConditionalAttribute that requires a serialized boolean field to be true.
- Parameters
-
boolCondition | The name of a boolean field. |
◆ ConditionalDrawAttribute() [2/2]
Infohazard.Core.ConditionalDrawAttribute.ConditionalDrawAttribute |
( |
string |
condition, |
|
|
object |
value, |
|
|
bool |
isEqual = true |
|
) |
| |
ConditionalAttribute that requires a serialized field named condition to be equal or not equal to value.
- Parameters
-
condition | The name of a field. |
value | The value to compare to. |
isEqual | Whether to check for equality or inequality. |
◆ Condition
string Infohazard.Core.ConditionalDrawAttribute.Condition |
|
get |
The serialized field to check.
◆ IsEqual
bool Infohazard.Core.ConditionalDrawAttribute.IsEqual |
|
get |
Whether the value of the condition field should be equal to the given value in order to draw.
◆ Value
object Infohazard.Core.ConditionalDrawAttribute.Value |
|
get |
The value to compare the Condition field to.
The documentation for this class was generated from the following file:
- Runtime/Attributes/ConditionalDrawAttribute.cs