[SOLVED] How to Get Text Behind Game Objects?

I’m using 5.6.1f1 and I want to know how to layer text like you do with game objects.

I’ve done some research and found that you can do it by simply changing the canvas render mode to World Space, but I have one problem with that – When set to World Space, the text is HUGE. In order to get it to the size that I had it to begin with, I have to scale down to like 0.01 for X and Y.

Is there any way to layer text behind game objects WITHOUT changing it’s size/quality?

Any help would be greatly appreciated!

- Chris

All UI Objects are layers through various mechanisms.

  • Hierarchy depth, higher elements drawn first, lower elements drawn last. This also applies to children
  • Layer order
  • Sprite sort order

So if you want text behind another UI object, then place it higher in the hierarchy to begin with.

If you want text behind a 3D object, then either add the 3D object to the canvas and scale accordingly, or put the text on a worldspace canvas and position the canvas behind the 3D object in the scene relative to the camera.

Hope that helps.

2 Likes

Thank you! Didn’t realize it was going to be that simple :slight_smile: