|CompoundFormatUnits|{{RootFieldType|SyncFieldList`1|[[Type:String|String]]}}|TypeAdv4=true| A list of format Units this can use to format the base value (common ones are "ft" as an entry followed by another entry with "in" or "m" as an entry followed by another entry with "cm" ).
|CompoundUseLongNames|Bool|Show the long names of compound units.
|CompoundUseLongNames|Bool|Show the long names of compound units.
|CompoundOverrideNames|Bool|
|CompoundOverrideNames|Bool| Whether the compound format unit names should be used rather than their usual name.
|CompoundDiscardLastFraction|Bool|
|CompoundDiscardLastFraction|Bool| Whether to discard the decimal of the smallest unit being displayed in the output or not. (so "3m 2.5cm" will become 3m 2cm")
|CompoundSeparator|String|String to put between compound units.
|CompoundSeparator|String|String to put between compound units.
|CompoundZeroHandling|CompoundZeroHandling|Remove or trim compound units with a value of zero.
|CompoundZeroHandling|CompoundZeroHandling|Remove or trim compound units with a value of zero.
Line 30:
Line 30:
[[Category:Components{{#translation:}}|Quantity Text Format Driver`1]]
[[Category:Components{{#translation:}}|Quantity Text Format Driver`1]]
[[Category:Generic Components{{#translation:}}|Quantity Text Format Driver`1]]
[[Category:Generic Components{{#translation:}}|Quantity Text Format Driver`1]]
[[Category:ComponentStubs]]
Latest revision as of 23:08, 7 April 2025
Component image
Quantity Text Format Driver`1 component as seen in the Scene Inspector
The QuantityTextFormatDriver allows driving a string with an auto formatted quantity.
A list of format Units this can use to format the base value (common ones are "ft" as an entry followed by another entry with "in" or "m" as an entry followed by another entry with "cm" ).
Remove or trim compound units with a value of zero.
Behavior
The most suitable unit type is automatically chosen based on the BaseValue, you can override this behavior by inputting a unit type into FormatUnit or using compound units.