VariablesGroupAsset
Collection of IVariable that can be used during formatting of a localized string.
Read time 4 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: Unity.SmartStrings.PersistentVariables
- Assembly: UnityEngine.SmartStringsModule
- Inherits from: ScriptableObject
- Implements: IVariableGroup, IVariable, IDictionary<string, IVariable>, ICollection<KeyValuePair<string, IVariable>>, IEnumerable<KeyValuePair<string, IVariable>>, IEnumerable, ISerializationCallbackReceiver
[HelpURL("smart-strings/persistent-variables-source")]public class VariablesGroupAsset : ScriptableObject, IVariableGroup, IVariable, IDictionary<string, IVariable>, ICollection<KeyValuePair<string, IVariable>>, IEnumerable<KeyValuePair<string, IVariable>>, IEnumerable, ISerializationCallbackReceiver
Properties
Property | Description |
|---|---|
| Count | The number of variables in the group. |
| IsReadOnly | Implemented as part of IDictionary but not used. Always returns |
| this[] | The IVariable associated with the specified name. |
| Keys | A collection of all the unique variable names. |
| Values | All the variables in this group. |
Methods
Method | Description |
|---|---|
| Add | Adds a new Global Variable to use during formatting. |
| Clear | Removes all variables in the group. |
| ContainsKey | Returns |
| CopyTo | Copies the variables into an array starting at |
| GetEnumerator | Returns an enumerator for all variables in this group. |
| Remove | Removes a variable with the specified key. |
| TryGetValue | Gets the IVariable with the specified name. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |