Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SupportedComparisons

The comparison operators offered by the comparison dropdown.
Read time 1 minuteLast updated 12 days ago

Definition

protected virtual IReadOnlyList<ConditionComparison> SupportedComparisons { get; }

Remarks

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<T>.DisplayComparisonDropdown is overridden to return
true
.