The '''SettingValueSync''' component allows for reading (And sometimes writing) a setting from a particular <code>SyncingUser</code> for the purpose of changing an item/world's appearance or behavior depending on that settings value.
|TargetField|{{RootFieldType|FieldDrive`1|T}}|TypeAdv2=true| The field to put the setting value into, can also write back to the setting if the world is unsafe or the setting allows for the world to write it.
|SubsettingGetter|String|
|SubsettingGetter|String| The subsetting method name to use to get a subsetting.
|SubsettingKey|String|
|SubsettingKey|String| The key to pass to the subsetting getter method found under the name specified by <code>SubsettingGetter</code> in order to get a subsetting.
}}
}}
== Behavior ==
== Usage ==
Attach to a slot and provide a setting path (<code>SettingName</code>) and a <code>SyncingUser</code> to read from in order to read values. For subsettings like audio devices or trackers a <code>SubsettingGetter</code> and a <code>SubsettingKey</code> is needed.
== Examples ==
== Examples ==
Can be used to make an item/avatar/world inform the user that an item won't look correct, or will behave differently depending on that user's settings.
== See Also ==
== See Also ==
* [[Settings]]
[[Category:Components:Utility{{#translation:}}|Setting Value Sync`2]]
[[Category:Components:Utility{{#translation:}}|Setting Value Sync`2]]
[[Category:Components{{#translation:}}|Setting Value Sync`2]]
[[Category:Components{{#translation:}}|Setting Value Sync`2]]
[[Category:Generic Components{{#translation:}}|Setting Value Sync`2]]
[[Category:Generic Components{{#translation:}}|Setting Value Sync`2]]
Setting Value Sync`2 component as seen in the Scene Inspector
The SettingValueSync component allows for reading (And sometimes writing) a setting from a particular SyncingUser for the purpose of changing an item/world's appearance or behavior depending on that settings value.
The key to pass to the subsetting getter method found under the name specified by SubsettingGetter in order to get a subsetting.
Usage
Attach to a slot and provide a setting path (SettingName) and a SyncingUser to read from in order to read values. For subsettings like audio devices or trackers a SubsettingGetter and a SubsettingKey is needed.
Examples
Can be used to make an item/avatar/world inform the user that an item won't look correct, or will behave differently depending on that user's settings.