priority

Provides coarse-grained control over draw order.

The priority is applied separately for opaque and translucent objects, that is, opaque objects are always drawn before translucent objects regardless of the priority. Priority is orthogonal to layerMask, which merely controls visibility.

Return

Builder reference for chaining calls.

Parameters

priority

clamped to the range 0..7, defaults to 4; 7 is lowest priority (rendered last).