Class PlayerPrefLocaleSelector
This example shows how we can create a Locale selector that uses the Player Prefs to keep track of the last used locale.
Whenever the locale is changed, we record the new Locale and update the player pref
Inheritance
System.Object
PlayerPrefLocaleSelector
Syntax
public class PlayerPrefLocaleSelector : StartupLocaleSelector
Fields
playerPreferenceKey
Declaration
public string playerPreferenceKey
Field Value
Type |
Description |
System.String |
|
Methods
GetStartupLocale(LocalesProvider)
Returns the last locale set or null if no value has been recorded yet.
Declaration
public override Locale GetStartupLocale(LocalesProvider availableLocales)
Parameters
Returns
Overrides