Skip to content
EN

Function: getHitAreaLocalRect() ​

ts
function getHitAreaLocalRect(handle): HitAreaLocalRect | null;

Reads the node's suity.hitArea2d rectangle in local space. x / y are the rectangle center offsets from the node origin. Returns null when the node has no hit area or its size is non-positive.

Parameters ​

ParameterType
handleSceneNodeHandle

Returns ​

HitAreaLocalRect | null

Suity 开发者文档 · API 由 TypeDoc 从声明文件生成