Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


zIndex

Controls the stacking order of overlapping elements within a stacking context. The default is auto, which does not create a stacking context; any integer value creates one for the element and its descendants.
Read time 1 minuteLast updated 13 days ago

Definition

StyleInt zIndex { get; }

Remarks

Unlike CSS, transform and opacity do not establish a stacking context in UI Toolkit; only a z-index other than auto does.