docs.unity3d.com
    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
    [Serializable]
    public class DefaultSource : 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)
    In This Article
    • Constructors
      • DefaultSource(SmartFormatter)
    • Methods
      • TryEvaluateSelector(ISelectorInfo)
    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