Skip to content

SortingGroup

const SortingGroup: BuiltinComponentDef<SortingGroupData>

Defined in: ecs/component.ts:972

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.