Skip to content

SortGroupComponentOptions

Defined in: packages/renderer/src/SortGroupComponent.ts:97

Options for SortGroupComponent.

optional innerSort?: LayerSortFn

Defined in: packages/renderer/src/SortGroupComponent.ts:113

Optional depth key for ordering the group’s own members. Default (unset): members keep insertion order, and any member’s manually-set zIndex is honoured — a real stacking context, matching Unity’s SortingGroup. Pass ySort (or any LayerSortFn) to instead order members by position among themselves, while the group as a whole still sorts as one unit against the rest of the layer.


optional layer?: string

Defined in: packages/renderer/src/SortGroupComponent.ts:104

Layer the group renders into. Visuals in the entity’s subtree that target this same layer are gathered into the group; visuals targeting a different layer are left alone (so a child’s shadow can still live on a separate "ground" layer). Default: "default".