This one should have been a matter of a simple google search, but it isn’t. Also I can’t find something in the docs.
The question is: what happens first? Render queue sorting or Sorting layer sorting?
So, I put 3 sprites at the exact same z:
- A is in render queue 3000
- B is 3100
- C is 3200
So far, so good. Then, we move sprite ‘A’ to “order in layer” = 1:
‘A’ goes on top, which means that sorting layer sorting takes place first, and then render queue sorting is performed among objects of the same sorting layer.