I was just playing with the "order in layer" and z position of the sprites and want to be sure (because found out in some previous version of unity it was working differently).
The priority has the "order in layer". That is, the sprite with higher order than some other sprite is drawn at the "top", the Z-position isn't taken into account. Only if the "order in layer" are the same, the Z-position is taken into account and could fine tune the draw order.
Am I getting this right?
One more question, what is the maximum value of the "order in layer"? Is it somehow dependent on the (Z buffer)/(near-far plane position)? I found that max positive value is (2^15) - 1.
Thanks