Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CompareFunction

Depth or stencil comparison function.
Read time 1 minuteLast updated 4 days ago

Definition

public enum CompareFunction

Fields

Value

Description

AlwaysAlways pass depth or stencil test.
DisabledDepth or stencil test is disabled.
EqualPass depth or stencil test when values are equal.
GreaterPass depth or stencil test when new value is greater than current value.
GreaterEqualPass depth or stencil test when new value is greater or equal than current value.
LessPass depth or stencil test when new value is less than current value.
LessEqualPass depth or stencil test when new value is less or equal than current value.
NeverNever pass depth or stencil test.
NotEqualPass depth or stencil test when values are different.