Add(string, IVariable)
Adds a new Global Variable to use during formatting.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.SmartStrings.PersistentVariables
- Assembly: UnityEngine.SmartStringsModule
public void Add(string name, IVariable variable)
Parameters
The name of the variable, must be unique. Note the name should not contain any whitespace, if any is found then it will be replaced with with '-'.
The variable to use when formatting. See also BoolVariable, FloatVariable, IntVariable, StringVariable, ObjectVariable.