CreateLayerOptions
Defined in: renderer/src/RenderLayer.ts:17
Options for creating a layer.
Properties
Section titled “Properties”eventMode?
Section titled “eventMode?”
optionaleventMode?:EventMode
Defined in: renderer/src/RenderLayer.ts:19
Per-layer override for PixiJS event mode. Falls back to the manager default.
isRenderGroup?
Section titled “isRenderGroup?”
optionalisRenderGroup?:boolean
Defined in: renderer/src/RenderLayer.ts:32
Promote the layer’s container to a Pixi v8 render group. See
LayerDef.isRenderGroup for the full rationale — isolates filter
uniforms from sibling layers that read globalUniforms directly.
optionalsort?:LayerSortFn
Defined in: renderer/src/RenderLayer.ts:39
Depth-key function. See LayerDef.sort — when set, DisplaySystem
writes child.zIndex = sort(child) on every child each frame, and
flips container.sortableChildren = true so Pixi orders the layer
by zIndex at render time. Default: undefined (insertion order).
space?
Section titled “space?”
optionalspace?:LayerSpace
Defined in: renderer/src/RenderLayer.ts:26
Coordinate space. "world" (default) layers are picked up by cameras
spawned without explicit bindings; "screen" layers are skipped so
they stay fixed to the viewport. Cameras can still explicitly bind
screen-space layers by naming them in bindings.