docs.unity3d.com
    Show / Hide Table of Contents

    Interface ISelectorInfo

    Contains all the necessary information for evaluating a selector.

    Namespace: UnityEngine.Localization.SmartFormat.Core.Extensions
    Syntax
    public interface ISelectorInfo
    Examples

    When evaluating "{Items.Length}", the CurrentValue might be Items, and the Selector would be "Length". The job of an ISource is to set CurrentValue to Items.Length.

    Properties

    CurrentValue

    The current value to evaluate.

    Declaration
    object CurrentValue { get; }
    Property Value
    Type Description
    Object

    FormatDetails

    Infrequently used details, often used for debugging

    Declaration
    FormatDetails FormatDetails { get; }
    Property Value
    Type Description
    UnityEngine.Localization.SmartFormat.Core.Formatting.FormatDetails

    Placeholder

    Contains all the details about the current placeholder.

    Declaration
    Placeholder Placeholder { get; }
    Property Value
    Type Description
    UnityEngine.Localization.SmartFormat.Core.Parsing.Placeholder

    Result

    Sets the result of evaluating the selector.

    Declaration
    object Result { get; set; }
    Property Value
    Type Description
    Object

    SelectorIndex

    The index of the selector in a multi-part selector. Example: {Person.Birthday.Year} has 3 seletors, and Year has a SelectorIndex of 2.

    Declaration
    int SelectorIndex { get; }
    Property Value
    Type Description
    Int32

    SelectorOperator

    The operator that came before the selector; typically "."

    Declaration
    string SelectorOperator { get; }
    Property Value
    Type Description
    String

    SelectorText

    The selector to evaluate

    Declaration
    string SelectorText { get; }
    Property Value
    Type Description
    String
    Back to top
    Terms of use
    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