UI is covering my Sprite

Hello!
I read other topics but I just can’t solve it!

As you can see from my screenshot … ball is going under “score numbers”.

Score Numbers are TextmeshPro and ball is a normal “Sprite Renderer”.

Now Canvas is set to “Screen Size” but if I set it as WORLD SPACE … as i read in other similar topics … numbers go away… disappear. So I tried to move CANVAS and/or TextMeshPro on the X Axis but … nothing … numbers won’t come back.

Do you have an idea of what I should do/check to solve this?

Thanks!

Three (3) ways that Unity draws / stacks / sorts / layers stuff:

In short,

The default 3D Renderers draw stuff according to Z depth - distance from camera.

SpriteRenderers draw according to their Sorting Layer and Sorting Depth properties

UI Canvas Renderers draw in linear transform sequence, like a stack of papers

If you find that you need to mix and match items using these different ways of rendering, and have them appear in ways they are not initially designed for, you need to:

  • identify what you are using
  • search online for the combination of things you are doing and how to to achieve what you want.

There may be more than one solution to try.