docs.unity.cn
    Show / Hide Table of Contents

    Class DefaultSource

    Provides the ability to reference an argument by its index, the same as String.Format.

    Inheritance
    Object
    DefaultSource
    Namespace: UnityEngine.Localization.SmartFormat.Extensions
    Syntax
    public class DefaultSource : object, ISource

    Constructors

    DefaultSource(SmartFormatter)

    Creates a new instance of the formatter.

    Declaration
    public DefaultSource(SmartFormatter formatter)
    Parameters
    Type Name Description
    SmartFormatter formatter

    The formatter that the source is added to.

    Methods

    TryEvaluateSelector(ISelectorInfo)

    Performs the default index-based selector, same as String.Format.

    Declaration
    public bool TryEvaluateSelector(ISelectorInfo selectorInfo)
    Parameters
    Type Name Description
    ISelectorInfo selectorInfo
    Returns
    Type Description
    Boolean
    Implements
    ISource.TryEvaluateSelector(ISelectorInfo)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, October 28, 2021