Unit Attribute class. Used to mark a field with the respective Fusion.Units
More...
Inherits PropertyAttribute.
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. |
◆ ClampMax
If entered values above this Max should be clamped.
◆ ClampMin
If entered values below this Min should be clamped.
◆ DecimalPlaces
The rounding used by the value slider.
◆ InverseDecimalPlaces
int InverseDecimalPlaces = 5 |
The rounding used by the inverse slider (if UseInverse is enabled).
◆ InverseName
The label used for the inverse field (if used).
◆ InverseUnit
The Units used for the inverse, as they will be different than the primary field.
◆ UseInverse
Displays 1/value as a second field.
◆ 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.