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

Condition<T0>.SupportedComparisons

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

protected IReadOnlyList<ConditionComparison> SupportedComparisons;

Description

The comparison operators offered by the comparison dropdown.

By default this property returns null and the dropdown filters the operators by the value type: ordered types such as numeric types offer every ConditionComparison operator, other types offer equality operators only. Override this property to supply your own list of operators; an empty list behaves like null and falls back to the type-based defaults. It is only relevant when Condition<T0>.DisplayComparisonDropdown is overridden to return true.