ドキュメント

Unity Engine

Unity Engine

ConditionComparison

Specifies the comparison operator used by a condition to compare a value against the condition's reference value.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

public enum ConditionComparison

Remarks

A condition records the operator and the reference value; it does not evaluate them. The consuming runtime performs the comparison. Ordering operators such as ConditionComparison.Less only apply to values whose type supports ordering, such as numeric types; other types support ConditionComparison.Equal and ConditionComparison.NotEqual only.

Fields

Value

Description

EqualThe value equals the reference value.
GreaterThe value is greater than the reference value.
GreaterOrEqualThe value is greater than or equal to the reference value.
LessThe value is less than the reference value.
LessOrEqualThe value is less than or equal to the reference value.
NotEqualThe value does not equal the reference value.