Can't see ball vb on the background sprite

I can’t see the ball and the other sprites except background sprite. And the main camera doesn’t show anything I put .It just shows the canvas

Hi Raxi,

Is the z-position of the background set to 10, the z-position of the camera to -10 and the z-position of the other game objects to 0?


See also:

1 Like

It’s solved thank you. But I did’t understand why we locate background ahead of the objects . Why we see game objects despite the background is ahead?

There is something called “z-fighting” in computer graphics. That effect happens when the computer does not know what to render first because everything has got the same position. Even if your ball appears to be on top of the background in the Hierarchy, that’s not necessarily the case when it comes to the rendering order. The rendering order might be arbitrary for objects sharing the same position.

1 Like

thank you

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms