Class TemplateFormatter
Template Formatter allows for registering reusable templates, and use them by name.
Inherited Members
Namespace: UnityEngine.Localization.SmartFormat.Extensions
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class TemplateFormatter : FormatterBase, IFormatter, ISerializationCallbackReceiver
Constructors
Name | Description |
---|---|
TemplateFormatter() | Creates a new instance of the formatter. |
Properties
Name | Description |
---|---|
DefaultNames | |
Formatter | The SmartFormatter that the formatter is part of. |
Methods
Name | Description |
---|---|
Clear() | Remove all templates. |
Register(string, string) | Register a new template. |
Remove(string) | Remove a template by its name. |
TryEvaluateFormat(IFormattingInfo) | This method is called by the SmartFormatter to obtain the formatting result of this extension. |