bevy icon indicating copy to clipboard operation
bevy copied to clipboard

UI material z-offset override

Open ickshonpe opened this issue 5 months ago • 0 comments

Objective

In #20237 the swatch implementation uses a child node to display the foreground color because UI materials have a higher local z offset than everything else.

Solution

Add a stack_z_offset function to the UiMaterial trait that can be overriden to set a custom z-offset.

ickshonpe avatar Jul 25 '25 00:07 ickshonpe