GetCulture(string)

Method in Cultures

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.

Summary

Returns the Culture represented by the language code in name .

public static Culture GetCulture(string name)

Parameters

Name
Description

string name

The name of the Culture to retrieve.

Returns

The Culture .

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.