Class Selector | Localization | 0.7.1-preview
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.RawText
    FormatItem.ToString()
    Namespace: UnityEngine.Localization.SmartFormat.Core.Parsing
    Syntax
    public class Selector : FormatItem

    Constructors

    Selector(SmartSettings, String, Int32, Int32, Int32, Int32)

    Declaration
    public Selector(SmartSettings smartSettings, string baseString, int startIndex, int endIndex, int operatorStart, int selectorIndex)
    Parameters
    Type Name Description
    SmartSettings smartSettings
    String baseString
    Int32 startIndex
    Int32 endIndex
    Int32 operatorStart
    Int32 selectorIndex

    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
    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