docs.unity3d.com
    Show / Hide Table of Contents

    Class Selector

    Represents a single selector in the text in a Placeholder that comes before the colon.

    Inheritance
    Object
    FormatItem
    Selector
    Inherited Members
    FormatItem.baseString
    FormatItem.endIndex
    FormatItem.SmartSettings
    FormatItem.startIndex
    FormatItem.m_RawText
    FormatItem.Parent
    FormatItem.Init(SmartSettings, FormatItem, Int32)
    FormatItem.Init(SmartSettings, FormatItem, Int32, Int32)
    FormatItem.Init(SmartSettings, FormatItem, String, Int32, Int32)
    FormatItem.RawText
    FormatItem.ToEnumerable()
    FormatItem.ToString()
    Namespace: UnityEngine.Localization.SmartFormat.Core.Parsing
    Syntax
    public class Selector : FormatItem

    Properties

    Operator

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

    Declaration
    public string Operator { get; }
    Property Value
    Type Description
    String

    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
    public int SelectorIndex { get; }
    Property Value
    Type Description
    Int32

    Methods

    Clear()

    Declaration
    public override void Clear()
    Overrides
    FormatItem.Clear()

    Extension Methods

    TupleExtensions.IsValueTuple(Object)
    TupleExtensions.GetValueTupleItemObjects(Object)
    TupleExtensions.GetValueTupleItemObjectsFlattened(Object)
    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