Skip to content

Function: hitTestNode() ​

ts
function hitTestNode(handle, globalPoint): boolean;

Tests a global point against the node's local-space suity.hitArea2d rectangle. Returns false when the node has no hit area or its size is non-positive.

Parameters ​

ParameterType
handleSceneNodeHandle
globalPoint{ x: number; y: number; }
globalPoint.xnumber
globalPoint.ynumber

Returns ​

boolean

Suity developer documentation · API generated by TypeDoc