EntityPickOptions
此内容尚不支持你的语言。
Defined in: ecs/entityPick.ts:33
Properties
Section titled “Properties”depthLayers?
Section titled “depthLayers?”
optionaldepthLayers?:number
Defined in: ecs/entityPick.ts:45
iconHalf?
Section titled “iconHalf?”
optionaliconHalf?: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).
ySortLayers?
Section titled “ySortLayers?”
optionalySortLayers?:number
Defined in: ecs/entityPick.ts:44
The project’s sorting-layer masks, so hits rank the way the frame stacked them.
Methods
Section titled “Methods”pickable()?
Section titled “pickable()?”
optionalpickable(entity):boolean
Defined in: ecs/entityPick.ts:42
Entities this realm refuses to select. Everything is selectable by default.
Parameters
Section titled “Parameters”entity
Section titled “entity”number
Returns
Section titled “Returns”boolean