I have the following situation:
- A parent
Node
, taking all the screen space.- A child for the top bar.
- A child for the game area.
- A child for the bottom bar.
- An absolute positioned child for an overlay that must not be bound to the three above.
I can't quite get the above to work, because I can't find a way to define the z-order of the children, at least using the default UiCameraComponents. Here's what I've tried:
- Adding a
Translation
component to the absolute positioned child and move it up the Z axis. - Giving the absolute positioned child a transform higher up in the Z axis.
- Spawn the nodes in different orders.
It seems like the overlay child consistently renders behind the relatively positioned siblings.