bevy
bevy copied to clipboard
UI material z-offset override
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.