Class FormatCache
Caches information about a format operation so that repeat calls can be optimized to run faster.
Namespace: UnityEngine.Localization.SmartFormat.Core.Formatting
Syntax
public class FormatCache
Properties
CachedObjects
Storage for any misc objects. This can be used by extensions that want to cache data, such as reflection information.
Declaration
public Dictionary<string, object> CachedObjects { get; }
Property Value
Type | Description |
---|---|
Dictionary<String, Object> |
Format
Caches the parsed format.
Declaration
public Format Format { get; set; }
Property Value
Type | Description |
---|---|
Format |
GlobalVariableTriggers
Any IGlobalVariableValueChanged that may have been used during formatting. This can then be used to subscribe to update events in order to trigger a regeneration of the string.
Declaration
public List<IGlobalVariableValueChanged> GlobalVariableTriggers { get; }
Property Value
Type | Description |
---|---|
List<IGlobalVariableValueChanged> |