Unity Language Toolkit is a utility tool built for Unity Engine. It lets users set variables in multiple languages and retrieve the values via C# scripting.
Step 0: Download and import the asset via Unity Asset Store.
Step 1: Bring up the editor window via Window > Yeahlowflicker > YF-Unity-Language-Toolkit > Main Editor.
Step 2: Create a scene reference object via the editor window or Window > Yeahlowflicker > YF-Unity-Language-Toolkit > Create Reference Object.
Step 3: Drag the reference object to the object field in the editor.
Step 4: Add languages in the Languages tab of the editor. To add a language, click the + button.
Step 5: Add items in the Items tab of the editor. To add an item, click the + button.
Step 6: Edit the values of each item by clicking the Edit button in the Items tab of the editor.
Step 7: In your scripts, call the reference object and get your desired values using the API.
Step 8: You are now good to go!
Note 0: Users are always recommended to use the editor window to edit the values, and create reference objects via only the editor window or the Unity toolbar options. In simple words, we do not recommend dragging the scripts directly to custom-made GameObjects.
Note 1: Always keep ONE reference object in a scene ONLY, otherwise the toolkit will have trouble finding the correct one.
Note 2: You must include using Yeahlowflicker.Unity.LanguageToolkit; in the scripts you want to use the toolkit.
Note 3: Hold shift key to activate the delete buttons.
Note 4: The scripts on the reference object are hidden in order to prevent glitches.
Singleton instance of language master. As long as reference object is present, communication with language master can be done by calling this instance property.
Add a new item to language master.
Add a new language to language master.
Return a value based on name and language.
Remove a language from language master.
Rename a language from language master, using item index as identifier.
Set the value of an item based on name and language.
YFLanguageMaster.instance.SetItem("hello_world", "en-us", "Hello World!");
This project is licensed under the Unity Default License.
By downloading the asset, you understand and agree with the license.
The extension is published via the Unity Asset Store only. You should not install/download the extension from external sources. We are not responsible for any issues occured due to the use of the extension installed from unauthorized sources.
Contact us at the Contact Page now.