Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VariablesGroupAsset

Collection of IVariable that can be used during formatting of a localized string.
Read time 4 minutesLast updated 5 days ago

Definition

[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

CountThe number of variables in the group.
IsReadOnlyImplemented as part of IDictionary but not used. Always returns
false
.
this[]The IVariable associated with the specified name.
KeysA collection of all the unique variable names.
ValuesAll the variables in this group.

Methods

Method

Description

AddAdds a new Global Variable to use during formatting.
ClearRemoves all variables in the group.
ContainsKeyReturns
true
if a variable with the specified name exists.
CopyToCopies the variables into an array starting at
arrayIndex
.
GetEnumeratorReturns an enumerator for all variables in this group.
RemoveRemoves a variable with the specified key.
TryGetValueGets the IVariable with the specified name.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.