All pages
Powered by GitBook
1 of 6

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

GetCultures()

Method in Cultures

Summary

public static IEnumerable<Culture> GetCultures();

Cultures

Class in Yarn.Unity

Inherits from System.Object

Summary

Provides access to all Culture s supported by Yarn Spinner.

public static class Cultures

Methods

Name
Description

Name
Description

GetCulture(string)

Method in

Returns the represented by the language code in name .

Name
Description

The
.
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.

Summary

Parameters

Returns

Cultures
Culture

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 .

Properties

GetCulture(string)
Culture
GetCultures()
HasCulture(string)
Culture
GetCulture(string)
TryGetCulture(string,Culture)
Culture
CurrentNeutralCulture
Culture
Culture

CurrentNeutralCulture

Property in Cultures

Summary

public static Culture CurrentNeutralCulture { get; }

HasCulture(string)

Method in Cultures

Summary

Returns a boolean value indicating whether name is a valid identifier for retrieving a Culture from GetCulture(string) .

public static bool HasCulture(string name)

Parameters

Name
Description

string name

Returns

true if name is a valid name; false otherwise.

TryGetCulture(string,Culture)

Method in

Gets the represented by the language code in name .

Name
Description
Culture

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.

Summary

Parameters

Cultures
Culture

culture

On return, the if one was found, or a default if otherwise.

Returns

Culture
Yarn.Unity.Culture
Culture
Culture