Method ApplyLocaleVariant
ApplyLocaleVariant(Locale)
Apply all variants for the selected Locale to this GameObject.
Declaration
public AsyncOperationHandle ApplyLocaleVariant(Locale locale)
Parameters
| Type | Name | Description |
|---|---|---|
| Locale | locale | The Locale to apply to the GameObject. |
Returns
| Type | Description |
|---|---|
| AsyncOperationHandle | A handle to any loading operations or default if the operation was immediate. |
ApplyLocaleVariant(Locale, Locale)
Apply all variants for the selected Locale to this GameObject.
When a value cannot be found, the fallback value is used.
Declaration
public AsyncOperationHandle ApplyLocaleVariant(Locale locale, Locale fallback)
Parameters
| Type | Name | Description |
|---|---|---|
| Locale | locale | The Locale to apply to the GameObject. |
| Locale | fallback | The fallback Locale to use when a value does not exist for |
Returns
| Type | Description |
|---|---|
| AsyncOperationHandle | A handle to any loading operations or default if the operation was immediate. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |