Cultures
Provides access to all Cultures supported by Yarn Spinner.
public static class CulturesInherits from System.Object
#Properties
#CurrentNeutralCulture
Returns the neutral culture of the current culture.
public static Culture CurrentNeutralCulture { get; }Type Culture
So in the case of en-AU for Australian English this would return en
#Methods
#GetCultures()
Returns the collection of all cultures your system knows about.
public static IEnumerable<Culture> GetCultures();Returns IEnumerable: The collection of cultures
#HasCulture(string)
Returns a boolean value indicating whether
name
is a valid identifier for retrieving a Culture from
TryGetCulture(string,Culture).public static bool HasCulture(string name)Parameters
namestring
Returns Boolean: true if name is a valid Culture name; false otherwise.
#TryGetCulture(string, Culture)
Gets the Culture represented by the language code in
name.public static bool TryGetCulture(string name, out Culture culture)Parameters
namestringThe name of the Culture to retrieve.cultureYarn.Unity.Culture
Returns Boolean: true if a Culture was found; false otherwise.
Generated from Yarn Spinner for Unity 3.3.