Unit Attribute class. Used to mark a field with the respective Fusion.Units
More...
Inherits PropertyAttribute.
|
bool | ClampMax |
| If entered values above this Max should be clamped.
|
|
bool | ClampMin |
| If entered values below this Min should be clamped.
|
|
int | DecimalPlaces = 5 |
| The rounding used by the value slider.
|
|
int | InverseDecimalPlaces = 5 |
| The rounding used by the inverse slider (if UseInverse is enabled).
|
|
string | InverseName |
| The label used for the inverse field (if used).
|
|
Units | InverseUnit |
| The Units used for the inverse, as they will be different than the primary field.
|
|
bool | UseInverse |
| Displays 1/value as a second field.
|
|
bool | UseSlider |
| Set to false to override the effect of setting the min or max range values, and prevent the slider from being used. Useful for cases where a min/max is desired for clamping, but a slider range is not appropriate.
|
|
Unit Attribute class. Used to mark a field with the respective Fusion.Units
◆ UnitAttribute() [1/2]
Specify the field Fusion.Units type, without Min and Max values.
- Parameters
-
◆ UnitAttribute() [2/2]
Specify the field Fusion.Units type, and its Min and Max values.
- Parameters
-
unit | Unit type |
min | Min value for this field |
max | Max value for this field |
clamp | If values outside of the min/max range will get clamped, or be allowed. |