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
| Name | Data Type | Description |
|---|---|---|
| Enter | Exec | The input execution that triggers this node. |
| Detect Boundary | Rect | The rectangle. |
| Detect Point | Vec2 | The position of the point. |
Output
| Name | Data Type | Description |
|---|---|---|
| True | Exec | Execute the next node when the point is in the rectangle. |
| False | Exec | Execute the next node when the point is outside the rectangle. |
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.
