Localization Placeholder
LocalizationPlaceholder
This Placeholder is a MonoBehaviour that you can add to your GameObject.
What you need
- A localization key to be used as the final text reference;
- A TextMesh Pro UGUI component (a text on a Canvas) as a target for the localization injection. A 3D TextMesh Pro text cannot be assigned.
Note
Use a localization key from the same Localization CSV file that you'll upload via Back Office for the Environment.
See The Localization File in the Back Office documentation for its format and its upload.
How to setup
- In the "Key" field, put the complete Localization key identifier (e.g. "ui/customtutorial/title");
- In the "Text Field" field, add the reference to the TextMesh Pro UGUI component to target.
When you access this Environment in app, if you choose the language, your custom text updates automatically.
Do not set the text of that field from a script or a graph: the placeholder writes it again at every language change. To show another text at run time, change the key with the Set Key node (see Localization Nodes): the new text keeps following the language.