YSort

Inherits: Node2D < CanvasItem < Node < Object

Category: Core

Brief Description

Sort all child nodes based on their Y positions.

Properties

bool sort_enabled

Description

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.

Property Descriptions

Setter set_sort_enabled(value)
Getter is_sort_enabled()