Class SmartSettings
UnityEngine.Localization.SmartFormat settings to be applied for parsing and formatting.
Namespace: UnityEngine.Localization.SmartFormat.Core.Settings
Syntax
[Serializable]
public class SmartSettings
Properties
CaseSensitivity
Determines whether placeholders are case-sensitive or not.
Declaration
public CaseSensitivityType CaseSensitivity { get; set; }
Property Value
Type | Description |
---|---|
CaseSensitivityType |
ConvertCharacterStringLiterals
This setting is relevant for the UnityEngine.Localization.SmartFormat.Core.Parsing.LiteralText. If true (the default), character string literals are treated like in "normal" string.Format: string.Format("\t") will return a "TAB" character If false, character string literals are not converted, just like with this string.Format: string.Format(@"\t") will return the 2 characters "" and "t"
Declaration
public bool ConvertCharacterStringLiterals { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
FormatErrorAction
Gets or sets the ErrorAction to apply for the SmartFormatter.
Declaration
public ErrorAction FormatErrorAction { get; set; }
Property Value
Type | Description |
---|---|
ErrorAction |
ParseErrorAction
Gets or sets the ErrorAction to apply for the UnityEngine.Localization.SmartFormat.Core.Parsing.Parser.
Declaration
public ErrorAction ParseErrorAction { get; set; }
Property Value
Type | Description |
---|---|
ErrorAction |