Hello Unity-community
I was reading the documentation about the 2D sorting process: Unity - Manual: 2D Sorting
On that page there are listed several criteria how the 2D sorting process determines the order of 2D-renderers. So far so good
One of these criteria is:
Material/Shader
Unity sorts Renderers with the same Material settings together for more efficient rendering performance, such as with dynamic batching
After I researched a lot about (static and dynamic) batching I couldn’t identify, how exactly batching affects the order of 2D renderers. However, I figured out, that the order of 2D renderers can break batching but that is not relevant for me at the moment.
Therefore, my question: Does batching affect the order of 2D-Renderers at all?
And if so, how exactly does it affect the order of two overlapping SpriteRenderer with identical sorting options (same sorting layer and same sorting order)?
Additionally, what would happen, if one or both of these SpriteRenderers can be drawn by using batching?
Thank you very much!