Interface ISelectorInfo
Contains all the necessary information for evaluating a selector.
Namespace: UnityEngine.Localization.SmartFormat.Core.Extensions
Assembly: Unity.Localization.dll
Syntax
public interface ISelectorInfo
Examples
When evaluating "", the CurrentValue might be Items, and the Selector would be "Length". The job of an ISource is to set CurrentValue to Items.Length.
Properties
Name | Description |
---|---|
CurrentValue | The current value to evaluate. |
FormatDetails | Infrequently used details, often used for debugging |
Placeholder | Contains all the details about the current placeholder. |
Result | Sets the result of evaluating the selector. |
SelectorIndex | The index of the selector in a multi-part selector. Example: has 3 seletors, and Year has a SelectorIndex of 2. |
SelectorOperator | The operator that came before the selector; typically "." |
SelectorText | The selector to evaluate |