Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

ISelectorInfo

interface in Unity.SmartStrings.Core.Extensions

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Contains all the necessary information for evaluating a selector.

When evaluating "{Items.Length}", the CurrentValue might be Items, and the Selector would be "Length". The job of an ISource is to set CurrentValue to Items.Length.

Properties

Property 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 The result of evaluating the selector.
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.
SelectorOperator The operator that came before the selector; typically "."
SelectorText The selector to evaluate