docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISelectorInfo

    Contains all the necessary information for evaluating a selector.

    Namespace: UnityEngine.Localization.SmartFormat.Core.Extensions
    Assembly: Unity.Localization.dll
    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

    Name Description
    CurrentValue

    The current value to evaluate.

    FormatDetails

    Infrequently used details, often used for debugging

    Placeholder

    Contains all the details about the current placeholder.

    Result

    Sets the result of evaluating the selector.

    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.

    SelectorOperator

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

    SelectorText

    The selector to evaluate

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)