Smart
This class holds a Smart.Default instance of a SmartFormatter. The default instance has all extensions registered. For optimized performance, create a SmartFormatter instance and register the particular extensions that are needed. Smart methods are not thread safe.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: Unity.SmartStrings
- Assembly: UnityEngine.SmartStringsModule
public static class Smart
Static Properties
Property | Description |
|---|---|
| Default | The default SmartFormatter used by the static Smart formatting methods. If not set, a formatter from Smart.CreateDefaultSmartFormat is used. |
| Project | The SmartFormatter from the active project SmartStringsSettings, or |
Static Methods
Method | Description |
|---|---|
| CreateDefaultSmartFormat | Creates a new SmartFormatter instance with core extensions registered. For optimized performance, create a SmartFormatter instance and register the particular extensions that are really needed. |
| Format | Replaces the format items in the specified format string with the string representation or the corresponding object. |