My game has a non-ork part that uses unity locale and ork part that uses ork languages. I need to switch unity locale when I click on an ork language setting, whether it's a start menu language option or a language dropdown in option categories.
For example, in order to call this function,
public void SetLocale(int localeIndex)
{
LocalizationSettings.SelectedLocale = LocalizationSettings.AvailableLocales.Locales[localeIndex];
}
If I attach a script containing this function to the language button (in the case of start menu language option), I would need a way to know the ORK GUID of the language being selected, in order to switch Unity locale accordingly. How can I do that?
Also is there a way to do the same with option categories (language dropdown list) so that I can change language anytime in game without first go back to start screen?
Video 0:20 ~ end I switched unity locale using editor button.
0:00 ~ 0:20 I switched ork language using start menu option & language dropdown.
I want to set the language once, and apply to both ork language setting and unity locale. So that when I do what I did in 0:00 ~ 0:20, the logo and "wishlist on steam" button also changes to the target language.