Hello. I’m a beginner at Unity, and I have a problem with the drawing order of sprites generated with the 2D Toolkit. I’m not sure if the toolkit has something to do with it. My problem is that sprites sometimes do not get drawn in their correct z order. I just set a scene, with a couple of sprites in the back, a platform and slope in the middle, and a couple of more boxes in the front. To explain:
I was just playing around and learning with one of the toolkit’s demo scenes. However when I run the game this always happens when I move the camera (by moving the player character). At certain positions the sprites are drawn in the correct order, but a few steps with the character and they’re drawn incorrectly again. The camera is perspective, not ortho. This problem does not occur when I set it to ortho, but if it’s possible to solve this issue otherwise I’d like to keep it persp.
This is most likely a banality, but I couldn’t find an answer so please forgive meif it’s a noob issue. Any tips are appreciated. Thanks.