Sort all child nodes based on their Y positions.
    public class YSort : Node2D

Sort all child nodes based on their Y positions. The child node must inherit from CanvasItem for it to be sorted. Nodes that have a higher Y position will be drawn later, so they will appear on top of nodes that have a lower Y position.

Inheritance Chain

Constructors

    public YSort()

Properties

    public bool SortEnabled { get; set; }

Methods

    public bool IsSortEnabled()

Getter for SortEnabled

    public void SetSortEnabled(bool enabled)

Setter for SortEnabled

Tags: