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,
Parameters
Section titled “Parameters”camera
Section titled “camera”overlay
Section titled “overlay”screenGLX
Section titled “screenGLX”number
screenGLY
Section titled “screenGLY”number
Returns
Section titled “Returns”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.