Skip to content

uiHitAtScreen

uiHitAtScreen(world, camera, overlay, screenGLX, screenGLY): number | null

Defined in: sdk/src/ui/util/ui-pick.ts:153

What the GAME’s pointer would hit at framebuffer pixel (@p screenGLX,

PickableWorld

UICameraData

ScreenOverlayData

number

number

number | null

screenGLY) — the interaction system’s own question, so anything that synthesises a click (an automation driver) is refused exactly where a player’s would land elsewhere: a subtree under pointerEvents: None passes the pointer through. Unlike uiPickWorld, the editor’s selection pick, which sees everything.