- Home /
I don't want to use sorting order?
Hi, i'm making a 2d game in unity. I'm using a perspective camera and the variable z position of background objects to make parallax. This has become very cumbersome when working with the sorting order system. Is there a way to use sprites but also utilize zdepth composite rendering? Would i have to rebuild my game using quads and textures instead of sprites?
Thanks
Edit: @ josh I have to use sorting layers for things like characters composed of many sprites but when the environment is made of many sprites of varying distances(for parallax), they do not overlap and they become harder to organize over time. At least for me.
@ koray Thanks, I thought sorting order was compulsory when working with sprites. I'll set them all to 0 then.
also, if you set sorting order to 0 for all sprites, you can still use the z-depth.
@ koray I tried setting all sprites to 0 and removing all other sorting layers, but its still not rendering exclusively in z depth, theres z fighting when none of the sprites share the same depth. Do I have to activate some setting somewhere?
Answer by Josh Naylor · Nov 28, 2014 at 11:17 AM
Why do you not want to use the sorting system? Have you checked out the tutorial in the Learn section to greater understand how it works? http://unity3d.com/learn/tutorials/modules/beginner/2d/sorting-layers