Component:UnitSystemSwitcher
From Resonite Wiki
More actions
Component image 
Unit System Switcher component as seen in the Scene Inspector

The UnitSystemSwitcher component takes in one quantity type and converts it to another as a string.
| Name | Type | Description |
|---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
DefaultUnit
|
field drive of String | Changes the default unit to show in the text (especially if the FormatUnit is incorrect).
|
FormatUnit
|
field drive of String | The unit to show in the text. |
FormatNumber
|
field drive of String | Formats the string. |
CompoundFormatUnits
|
reference drive of SyncFieldList`1<String> | Compounds units together (example: feet and inches for height). |
CompoundOverrideNames
|
field drive of Bool | Overrides the names. |
CompoundSeparator
|
field drive of String | Separates the compound units. |
DefaultPreset
|
direct Preset | The default preset. |
ImperialPreset
|
direct Preset | The imperial preset. |
Usage
Useful for unit conversions.