Located at the top of the Inspector, localization section is the place where you can manage all the languages that your tutorial supports.

To add a language, simply type in the name of the language and click “Add” (or press Return key).

You can specify the default language which will be used during the tutorials by clicking radio buttons on the left.

This also works during “Play Mode”. Changing the language in the editor will change the language at runtime as well. Useful when you want to test different languages without a need of writing additional code for testing.

Then, simply go to your modules that support localization and you will be able to switch between languages. Text fields will be updated, allowing you to write in different languages.

The dropdown also shows which language has been chosen as default.

With languages added and content written, let's talk about actually changing languages.

Tutorial Master supports changing the language right during the tutorial. Calling an appropriate function will change the contents of localized modules as well!

TutorialMasterManager contains the function SetLanguage(), which changes the language at runtime. Calling SetLanguage() while tutorial isn't playing will set the default language for the tutorial.

You don't really need to write any code to call it though: simply use OnClick() event from your button and select SetLanguage().

And that's it! You can now change languages at runtime in a click of a button.

  • tutorial-master/2.0/localization.txt
  • Last modified: 2019/01/08 22:44
  • by admin