Character Pops Out On Z Axis.

I am really new to unity and I have been working on a game, but the sprite for the red character in the picture pops out on the z axis. I do not have any code specifically controlling this so I do not know what is wrong. Any help would be really appreciated.

Hi,

There are a few ways to handle this problem, You can use Z Axis stacking, whereby you physically change the Z value of the Transform in the inspector for each object. This way is not very efficient but it works.

The best way to manage it is through Sorting Layers. This can be found in the inspector, on the Sprite Renderer component. Add a few new layers then subscribe objects to the layers as needed. For example, you can create a background layer and player layer. That will allow for better control of your rendering.