Class Selector
Represents a single selector in the text in a Placeholder that comes before the colon.
Inherited Members
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 |