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
Assembly: Unity.Localization.dll
Syntax
[Serializable]
[Obsolete("Please use PersistentVariablesSource instead (UnityUpgradable) -> PersistentVariablesSource")]
public class GlobalVariablesSource : PersistentVariablesSource, ISource, ISerializationCallbackReceiver
Constructors
Name | Description |
---|---|
GlobalVariablesSource(SmartFormatter) | Creates a new instance of the source, |