How would I go about drawing elements to be infront of one another in the way that one would expect?
In the image I have a bunch of characters with elements and as you can see, they are not drawn in the order that they visually SHOULD be, instead the way they are arranged in the hierarchy.
Note: if I put the text with their colored background in a 3D screen, then all elements just render on top of each other no matter hierarchical order.
September 20, 2020, 6:16pm
How are they rendered at the moment? What layer are they on?
As you can see, I have a bunch of entities called ‘Other’ which have elements that are in the UI layer.
The entities called ‘NameBackground’ and the child of it ‘NameText’ are what you are seeing in the first image I posted.
September 20, 2020, 7:59pm
If that’s a public project, can you post the link to the overview page please so I can take a look?
September 20, 2020, 9:04pm
If you put all the UI elements onto the World Layer, it should sort by depth from the camera:
IIRC, the UI layer has a different shorting order but can’t recall off the the top of my head
Yep, putting the elements under world layer worked. Super simple fix and thank you!