I've got some UI elements and a 3D mesh imported from blender. I've tried stuff like sorting layers, so that I render my 3D mesh below a canvas UI element(side panel), for which I put my 3D mesh prefab under the UI layer, but, my mesh always ends up rendering on top. How can I render my mesh below the UI element? This is similar to the TMP(Text Mesh Pro) issue I have seen on the web, but, I already have front and back materials for the mesh, so I can't use TMP's distance field overlay shader.

Here's the basic hierarchy:

| ----->myprefabMesh (on layer UI)
|---->UISidePanel (on Layer side panel)

Sorting layer order:
-- UI
-- LayerSidePanel

  • \$\begingroup\$ Can you share a screen shot of your current set up including scene hierarchy? \$\endgroup\$ Oct 11, 2021 at 10:16
  • \$\begingroup\$ I don't think I'd be able to effectively do that, since I don't entirely own the project, I'm really sorry. But, I added some more information \$\endgroup\$
    – BumbleBee
    Oct 11, 2021 at 10:30
  • \$\begingroup\$ Hi, I don't understand why your Mesh is on UI layer, but to achieve simple UI over 3D gameobjects, you just have to place your UI as child of a "Screen Space - Overlay" canvas and your 3D gameobjects somewhere else. It should work ! \$\endgroup\$ Oct 11, 2021 at 11:57
  • 1
    \$\begingroup\$ @SebastienServouze, thanks that was it, the UI was in screen space camera, thanks a lot, I changed to overlay and ddone! haha, thanks again \$\endgroup\$
    – BumbleBee
    Oct 11, 2021 at 13:57
  • 1
    \$\begingroup\$ If you've solved your problem, be sure to post the solution as an answer. And in future when troubleshooting UI issues, be sure to provide complete information about how to recreate the problem: including your Canvas settings. \$\endgroup\$
    – DMGregory
    Oct 11, 2021 at 14:04

1 Answer 1


The problem I was having is as mentioned above, I was having the canvas in screen space camera mode rather than in screen space overlay mode.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .