Ok, here’s my setup
The blue menu with the white border, is the entireity of StatsPanelCanvas.
What i want is for it to always draw BEHIND StatsButton, which is just below it in the child list.
As far as i understand, child objects are drawn in their order, so the last child should always be on top of everything, and the first should always be underneath everything. But that’s not so, if i move the stats button down:
Ok so clearly i must be wrong, lets try moving StatsButton above the StatsPanelCanvas
That works, great! .
Let’s start play mode now, and see it in action.
During playmode, the StatsPanelCanvas gets moved around and transformed a lot.
So what’s going on here then?
But if i now, while still in play mode, swap their order again;
I have no idea what is going on here. Someone please explain this to me. How can i make the stats button ALWAYS be on top?