Skip to content
EN

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 开发者文档 · API 由 TypeDoc 从声明文件生成