How could I change the render order of UI in Playcanvas by code?
Hi @yash_mehrotra,
You can drag and reorder layers around to change the rendering order, though usually the UI layer should come last to function correctly.
What are you trying to do?
Got it, then most likely you need to do this instead, use a secondary camera that renders the 3D model to an image. And afterwards use the image on a UI image element:
https://developer.playcanvas.com/en/tutorials/render-3d-world-to-ui/
1 Like
I could not find the entity/element with the tag named “zombie-ui” in the above project?
Could you please highlight it somehow?
Don’t bother I got it. The player model was not on the required layer. Thankyou.