Used by Canvas to set how an object is sorted during rendering.

Enumeration Members

Enumeration Members

Depth: number

Sort based on their position in worldspace.

Hierarchy: number

Sort based on their position in the hierarchy. This is the default.