Class VariablesGroupAsset
Collection of IVariable that can be used during formatting of a localized string.
Inherited Members
Namespace: UnityEngine .Localization.SmartFormat .PersistentVariables
Assembly: Unity.Localization.dll
Syntax
[CreateAssetMenu(menuName = "Localization/Variables Group")]
public class VariablesGroupAsset : ScriptableObject, IVariableGroup, IVariable, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
Count | Returns the number of variables in the group. |
Is |
Implemented as part of IDictionary but not used. Always returns false. |
this[string] | Gets or sets the IVariable with the specified name. |
Keys | Returns a collection containing all the unique variable names. |
Values | Returns all the variables for this group. |
Methods
Name | Description |
---|---|
Add(Key |
Adds a new Global Variable to use during formatting. |
Add(string, IVariable) | Adds a new Global Variable to use during formatting. |
Clear() | Removes all variables in the group. |
Contains(Key |
Returns true if a variable with the specified name exists. |
Contains |
Returns true if a variable with the specified name exists. |
Contains |
Returns true if a variable with the specified name exists. |
Copy |
Copies the variables into an array starting at |
Get |
Returns an enumerator for all variables in this group. |
Get |
The value that will be used when the smart string matches this variable. This value can then be further used by additional sources/formatters. |
Remove(Key |
Removes a variable with the specified key. |
Remove(string) | Removes a variable with the specified name. |
Try |
Gets the IVariable with the specified name. |