Skip to content

EntityPickOptions

Defined in: ecs/entityPick.ts:33

optional depthLayers?: number

Defined in: ecs/entityPick.ts:45


optional iconHalf?: number | ((at) => number)

Defined in: ecs/entityPick.ts:40

World half-size of the box given to entities that draw nothing — a camera, a light, an empty. Zero (the default) leaves them unpickable, which is what a realm that draws no gizmo for them wants. A function when the icon’s size is a screen size (see EntityBoxOptions.iconHalf).


optional ySortLayers?: number

Defined in: ecs/entityPick.ts:44

The project’s sorting-layer masks, so hits rank the way the frame stacked them.

optional pickable(entity): boolean

Defined in: ecs/entityPick.ts:42

Entities this realm refuses to select. Everything is selectable by default.

number

boolean