This class loads data for a language within Unity at runtime. The language must always be located in the Resources folder, under Resources/Languages/{path}.
Public Member Functions | |
UnityLanguageLoader (string path) | |
Public Member Functions inherited from Wrench.LanguageLoader | |
LanguageLoader (string path) | |
Creates a new loader for the given path. More... | |
virtual LanguageSet | GetGroup (string groupName, string code) |
Loads a standard group by name. More... | |
LanguageSet | Get (string code) |
Gets the language with the given code. Called very rarely. More... | |
LanguageSet[] | AllLanguages () |
Gets all available languages. More... | |
Protected Member Functions | |
override LanguageSet | GetLanguage (string code) |
Gets the named language. More... | |
override LanguageSet[] | GetAllLanguages () |
Gets all available languages. More... | |
Private Attributes | |
LanguageSet[] | Languages |
Additional Inherited Members | |
Public Attributes inherited from Wrench.LanguageLoader | |
string | Path |
The path to the location of the languages. More... | |
|
inline |
|
inlineprotectedvirtual |
Gets all available languages.
Reimplemented from Wrench.LanguageLoader.
|
inlineprotectedvirtual |
Gets the named language.
code | The language code to find. Defined in the language tag at the top of the languages file. |
Reimplemented from Wrench.LanguageLoader.
|
private |