Class in Yarn.Unity
Inherits from System.Object
Provides access to all Culture s supported by Yarn Spinner.
public static class CulturesMethod in
Returns the represented by the language code in name .
public static Culture GetCulture(string name)string name
The name of the to retrieve.
This method is obsolete and may be removed from a future version of Yarn Spinner: Use TryGetCulture, which does not throw if the culture can't be found.
Returns the represented by the language code in name .
Returns a boolean value indicating whether name is a valid identifier for retrieving a from .
Gets the represented by the language code in name .
Method in Cultures
Returns a boolean value indicating whether name is a valid identifier for retrieving a Culture from GetCulture(string) .
public static bool HasCulture(string name)string name
true if name is a valid name; false otherwise.
Method in
Gets the represented by the language code in name .
true if a Culture was found; false otherwise.
public static bool TryGetCulture(string name, out Culture culture)string name
The name of the to retrieve.
culture
On return, the if one was found, or a default if otherwise.