Component:LocaleStringDriver

From Resonite Wiki
Component image 
Locale String Driver component as seen in the Scene Inspector

The LocaleStringDriver component is used to turn a key into a translated string from a locale, and then fill its value arguments with field contents or values.

Fields

Fields
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.
Target field drive of String The string field to drive with the final locale translation.
Key String The locale key to get a translation with.
Format String How to format the output.
Locale LocaleResource The locale resource to use Key on to get the translated string for.
ArgumentSources direct SyncDictionary`2<String, RelayRef`1<IField>> A list of argument strings in a locale translation and their fields to get the values for them from.
ArgumentValues direct SyncDictionary`2<String, SyncVar> A list of argument strings in a locale translation and their values.

Sync Delegates

Triggers
Method Name Method type and Arguments. Description
SetArgumentSource() Action`2<String: key, IField: field> Set a translation's argument key to use a certain field as the value source.
SetArgumentValue() Func`3<String: key, Object: value> Set a translation's argument key to use a certain value.

See Also