What happened to YSort node in Godot4?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GrandNecro

Im trying to follow a tutorial right now and they’re using GodotV3. I’m using GodotV4. The video showed the guy inserting a YSort node, but I cannot find that in Godot4 anywhere. Did it got moved or renamed?

:bust_in_silhouette: Reply From: jgodfrey

In Godot 4, the YSort node was removed in favor of a y_sort_enabled property onNode2D. See the docs here.

Saying this because I noticed it while looking for the sort node in Godot 4. It was moved to the CanvasItem ( yes I know that’s a parent of Node2D but it doesn’t show the property in the documentation since it’s not a direct member ). https://docs.godotengine.org/en/latest/classes/class_canvasitem.html#class-canvasitem-property-y-sort-enabled

Merlin1846 | 2023-03-14 04:59

For clarity…

At the time the above Answer was posted, the y_sort_enabled property was indeed associated with Node2D. However, the functionality was moved to CanvasItem when this PR was merged in November of 2022.

jgodfrey | 2023-03-14 17:56