docs.unity3d.com
    Show / Hide Table of Contents

    Class SmartSettings

    UnityEngine.Localization.SmartFormat settings to be applied for parsing and formatting.

    Inheritance
    Object
    SmartSettings
    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
    In This Article
    • Properties
      • CaseSensitivity
      • ConvertCharacterStringLiterals
      • FormatErrorAction
      • ParseErrorAction
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023