docs.unity3d.com
    Show / Hide Table of Contents

    Class DefaultFormatter

    Do the default formatting, same logic as "String.Format".

    Inheritance
    Object
    FormatterBase
    DefaultFormatter
    Inherited Members
    FormatterBase.Names
    Namespace: UnityEngine.Localization.SmartFormat.Extensions
    Syntax
    [Serializable]
    public class DefaultFormatter : FormatterBase, IFormatter, ISerializationCallbackReceiver

    Constructors

    DefaultFormatter()

    Creates a new instance of the formatter.

    Declaration
    public DefaultFormatter()

    Properties

    DefaultNames

    Default names to use when Names is null.

    Declaration
    public override string[] DefaultNames { get; }
    Property Value
    Type Description
    String[]
    Overrides
    FormatterBase.DefaultNames

    Methods

    TryEvaluateFormat(IFormattingInfo)

    Checks, if the current value of the ISelectorInfo can be processed by the DefaultFormatter.

    Declaration
    public override bool TryEvaluateFormat(IFormattingInfo formattingInfo)
    Parameters
    Type Name Description
    IFormattingInfo formattingInfo
    Returns
    Type Description
    Boolean

    Returns true, if the current value of the ISelectorInfo can be processed by the DefaultFormatter

    Overrides
    FormatterBase.TryEvaluateFormat(IFormattingInfo)
    In This Article
    • Constructors
      • DefaultFormatter()
    • Properties
      • DefaultNames
    • Methods
      • TryEvaluateFormat(IFormattingInfo)
    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