Draws the field/property ONLY if the compared property compared by the comparison type with the value of comparedValue returns true. Based on: https://forum.unity.com/threads/draw-a-field-only-if-a-condition-is-met.448855/
More...
Draws the field/property ONLY if the compared property compared by the comparison type with the value of comparedValue returns true. Based on: https://forum.unity.com/threads/draw-a-field-only-if-a-condition-is-met.448855/
◆ DisablingType
Types of comparisons.
Enumerator |
---|
ReadOnly | |
DontDraw | |
◆ DrawIfAttribute()
Only draws the field only if a condition is met. Supports enum and bools.
- Parameters
-
comparedPropertyName | The name of the property that is being compared (case sensitive). |
comparedValue | The value the property is being compared to. |
disablingType | The type of disabling that should happen if the condition is NOT met. Defaulted to DisablingType.DontDraw. |
◆ comparedPropertyName
string DrawIfAttribute.comparedPropertyName |
|
get |
◆ comparedValue
object DrawIfAttribute.comparedValue |
|
get |
◆ disablingType
The documentation for this class was generated from the following file: