Class GlobalVariablesSource
Can be used to provide global values that do not need to be passed in as arguments when formatting a string. The smart string should take the format {groupName.variableName}. e.g {global.player-score}. Note: The group name and variable names must not contain any spaces.
Inherited Members
Namespace: UnityEngine.Localization.SmartFormat.Extensions
Syntax
public class GlobalVariablesSource : PersistentVariablesSource, ISource, IDictionary<string, VariablesGroupAsset>, ISerializationCallbackReceiver
Constructors
GlobalVariablesSource(SmartFormatter)
Creates a new instance of the source,
Declaration
public GlobalVariablesSource(SmartFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
SmartFormatter | formatter |