ValueConditionAttribute
A class in Alta.Attributes, the global namespace.
Inspector attribute that shows, hides or locks a field based on whether another number field is above a threshold.
- Listed in Other Alta assemblies
- Inherits or implements
PropertyAttribute
Constructors
| Member | What it is |
|---|---|
ValueConditionAttribute(string valueField, float higherThanToTrue, ReadOnlyMode trueMode = 2, ReadOnlyMode falseMode = 0) | Creates a ValueConditionAttribute from valueField, higherThanToTrue, trueMode and falseMode. |
Properties
| Member | What it is |
|---|---|
ReadOnlyMode FalseMode { get; private set; } | How the field is drawn when the condition is false (hidden by default). |
float HigherThanToTrue { get; private set; } | Threshold: the condition is true when the other field is higher than this. |
ReadOnlyMode TrueMode { get; private set; } | How the field is drawn when the condition is true (editable by default). |
string ValueField { get; private set; } | Name of the field whose value is checked. |