Sorting Groups and AlphaTest Queue
I'm having an issue where sprite sorting stops working when I apply a sorting group to a parent object. The docs say "To sort Renderers within a Sorting Group, Unity uses the individual sort settings of the Renderers in the Sorting Group.". I take this to mean that each renderer within the sorting group will be sorted according to their "Sorting Layer" and "Order in Layer".
I believe I've narrowed the cause of this issue down to the fact that the materials being used are in the "AlphaTest" queue and not the "Transparent" queue. When I switch these materials to use the "Transparent" queue, sorting starts working properly, but then I lose the shadows those materials were receiving.
From what I can tell, Unity is falling back to its internal tiebreaker when using the "AlphaTest" queue.
Anyone familiar with a way to use Sorting Groups + the AlphaTest queue and keep sorting working as expected? I've searched but can't find anything that addresses Sorting Groups and AlphaTest at the same time.
Your answer
![](https://koobas.hobune.stream/wayback/20220613024146im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Changed sprite pivot point to custom , but it doesn't work well at sorting . #5.6 2 Answers
Sorting an Array of Arrays for game Object 2 Answers
How I Sort a List at Start?,Sorting a List on Start 0 Answers
Rotate a sprite ( card ) until it reaches the destination? 1 Answer
How to replace a character sprite colors in a character creation menu? 0 Answers