#Y-Sort Not Working as Expected

8 messages · Page 1 of 1 (latest)

stoic thistle
#

Hello! I am working on Y-Sorting in my game and I am unable to see why my nodes are not being y-sorted properly or if my understanding of the y-sort is incorrect. Attached is a video of me using the y-sort. If there is more information necessary let me know happy to provide it

dusty mulch
#

did you try to enable Y-Sort on the parent?

#

Y-Sort affects children

stoic thistle
#

yeah every node in the scene tree here has y-sort enabled

#

hmm perhaps it doesn't actually have it. I closed that scene that was unsaved so had to remake it and made sure the root node had y-sort enable and it worked. This is a simplified example so I do wonder if somewhere in my scene tree I have a node that is not y-sorted in my game. I will investigate. Thank you!

#

So it appears it was not working because the parent of these nodes wasn't a node 2d with y-sort enabled but just a node (which doesn't have y-sort)

#

I was trying to use the Node type as a "group" to organize my scene tree but ill have to settle with the node 2d doing the same thing

#

Thank you!