Skip to main content
TikTok Effect House Platform Logo
Latest
Download
Log in
Utility

Point in Rect

Use Point in Rect to detect whether or not a point is in a rectangle. Point in Rect is in the Utility category.

Input

NameData typeDescription
EnterExecThe input execution that triggers this node
Detect BoundaryRectThe rectangle
Detect PointVec2The position of the point

Output

NameData typeDescription
TrueExecExecute the next node when the point is in the rectangle
FalseExecExecute the next node when the point is outside the rectangle

Example

This example shows when you’re tapping in that area, it will show that image. For Detect Boundary, we show the Rect in (x,y,w,h), the value mapping see below: