docs.unity3d.com
    目次を表示する/隠す

    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
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)