[SOLVED] Changing render order in PlayCanvas

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?

@Leonidas I wanna render a 3D model over a UI image on my main screen panel.

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?

Sure, it’s this entity:

1 Like

@Leonidas What am I doing wrong here?
https://playcanvas.com/editor/scene/1829309

@Leonidas anything that you could debug?

Don’t bother I got it. The player model was not on the required layer. Thankyou.