Class PlayerPrefLocaleSelector
Uses the Player Prefs to keep track of the last used locale. Whenever the locale is changed, the new Locale is recorded in the Player prefs.
Namespace: UnityEngine .Localization.Settings
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class PlayerPrefLocaleSelector : IStartupLocaleSelector, IInitialize
Properties
Name | Description |
---|---|
Player |
The Player Pref key to use. |
Methods
Name | Description |
---|---|
Get |
Returns the last locale set or null if no value has been recorded yet. |
Post |
Registers a callback to Selected |