Cultures.TryGetCulture(string,Culture)

Method in Cultures

Summary

Gets the Culture represented by the language code in name .

public static bool TryGetCulture(string name, out Culture culture)

Parameters

NameDescription
string nameThe name of the Culture to retrieve.
Yarn.Unity.Culture cultureOn return, the Culture if one was found, or a default Culture if otherwise.

Returns

true if a Culture was found; false otherwise.