Skip to content
EN

Function: getHitAreaWorldRect() ​

ts
function getHitAreaWorldRect(handle): HitAreaWorldRect | null;

Reads the node's suity.hitArea2d rectangle in world space, including the node view's current translation, rotation and scale. Corners are ordered top-left, top-right, bottom-right, bottom-left. Returns null when the node has no hit area or its size is non-positive.

Parameters ​

ParameterType
handleSceneNodeHandle

Returns ​

HitAreaWorldRect | null

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