Interaction
Get Mouse Position
Last updated November 7, 2023
The Get Mouse Position behavior gets the current (or last known) position of the mouse cursor in screen coordinate space.
⚠️ Warning: This feature is only fully supported on iOS 14.0 and above.
| Output Fields | Description |
| x |
The horizontal position of the mouse cursor in screen coordinate space. The leftmost position is x = 0. Units are in meters. |
| y |
The vertical position of the mouse cursor in screen coordinate space. The bottommost position is y = 0. Units are in meters. |
Example: Object Tracks the Cursor
Every frame, the object moves to the cursor's position, making it appear like the object is stuck to the cursor. Optionally, you can hide the cursor to make it appear that the object is the cursor itself.

