Component:LocaleStringDriver

From Resonite Wiki
Revision as of 18:07, 23 January 2025 by 989onan (talk | contribs) (add info)
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

Lua error in mw.text.lua at line 25: bad argument #1 to 'match' (string expected, got nil).
Triggers
Method Name Method type and Arguments. Is the method hidden? Description

See Also