Selector
Represents a single selector in a Placeholder. E.g.: {selector0.selector1?.selector2}, while "." and "?." and "?[]" are operators.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Class
- Namespace: Unity.SmartStrings.Core.Parsing
- Assembly: UnityEngine.SmartStringsModule
- Inherits from: FormatItem
public class Selector : FormatItem
Properties
Property | Description |
|---|---|
| Operator | Gets the operator characters. |
| SelectorIndex | The index of the selector in a multi-part selector. Example: {Person.Birthday.Year} has 3 selectors, and Year has a SelectorIndex of 2. |
Methods
Method | Description |
|---|---|
| Clear | Clears the Selector. This method gets called by SelectorPool when it releases an instance. |
| Initialize | Initializes this Selector instance. |