跳转到内容

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.