Skip to content

SortingGroup

const SortingGroup: BuiltinComponentDef<SortingGroupData>

Defined in: sdk/src/ecs/component.ts:1029

Makes this entity and everything under it sort as ONE unit: the group states the layer and order the whole subtree presents outward, and each member’s own Sprite.order becomes its place INSIDE the group. Nothing outside the group can land between two of its members, which is what a per-sprite order cannot promise.