Skip to main content
Version: 3.8.0

Point in Rect

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.


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


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


point in rect examplepoint in rect example

This example shows that when an area is tapped, the image will be shown. For Detect Boundary, show the Rect in (x,y,w,h), the value mapping above.

point in rect node