Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

Cultures

Provides access to all Cultures supported by Yarn Spinner.
public static class Cultures

Inherits 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

Returns Boolean: true if a Culture was found; false otherwise.

Generated from Yarn Spinner for Unity 3.3.