|CompoundFormatUnits|{{RootFieldType|DriveRef`1|[[Type:SyncFieldList`1|SyncFieldList`1]]<[[Type:String|String]]>}}|TypeAdv3=true| Compounds units together (example: feet and inches for height).
|CompoundFormatUnits|{{RootFieldType|DriveRef`1|[[Type:SyncFieldList`1|SyncFieldList`1]]<[[Type:String|String]]>}}|TypeAdv3=true| Compounds units together (example: feet and inches for height).
|CompoundOverrideNames|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv4=true| Overrides the names.
|CompoundOverrideNames|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv4=true| Overrides the names.
|CompoundSeparator|{{RootFieldType|FieldDrive`1|[[Type:String|String]]}}|TypeAdv5=true| Separates the compound units.
|DefaultPreset|{{RootFieldType|(nested)|[[#Preset|Preset]]}}|TypeAdv6=true| The default preset.
|CompoundSeparator|{{RootFieldType|FieldDrive`1|[[Type:String|String]]}}|TypeAdv6=true| Separates the compound units.
|ImperialPreset|{{RootFieldType|(nested)|[[#Preset|Preset]]}}|TypeAdv7=true| The imperial preset.
|DefaultPreset|{{RootFieldType|(nested)|[[#Preset|UnitSystemSwitcher.Preset]]}}|TypeAdv7=true| The default preset.
|ImperialPreset|{{RootFieldType|(nested)|[[#Preset|UnitSystemSwitcher.Preset]]}}|TypeAdv8=true| The imperial preset.
}}
}}
Line 32:
Line 33:
== Examples ==
== Examples ==
{{stub}}
This component is used in the dash, to display your Height as a [[Type:Distance | Distance]] within the right Unit system
(Metric / Imperial)
== See Also ==
== See Also ==
Latest revision as of 06:28, 10 June 2025
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. This is commonly used to make editors easily able to take any unit input and automatically know which one the user is referring to.