(One intermediate revision by one other user not shown)
Line 12:
Line 12:
|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.
|CompoundUseLongNames|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv5=true| The field to drive with whether to use long names like "meters" instead of "m".
|CompoundSeparator|{{RootFieldType|FieldDrive`1|[[Type:String|String]]}}|TypeAdv6=true| Separates the compound units.
|CompoundSeparator|{{RootFieldType|FieldDrive`1|[[Type:String|String]]}}|TypeAdv6=true| Separates the compound units.
|DefaultPreset|{{RootFieldType|(nested)|[[#Preset|UnitSystemSwitcher.Preset]]}}|TypeAdv7=true| The default preset.
|DefaultPreset|{{RootFieldType|(nested)|[[#Preset|UnitSystemSwitcher.Preset]]}}|TypeAdv7=true| The default preset.
Line 33:
Line 33:
== Examples ==
== Examples ==
This component is used in the dash, to display your Height as a [[:https://wiki.resonite.com/Type:Distance:]] within the right Unit system
This component is used in the dash, to display your Height as a [[Type:Distance | Distance]] within the right Unit system
(Metric / Imperial)
(Metric / Imperial)
Latest revision as of 12:13, 3 August 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.