OnMouseMove
This event is triggered when the mouse cursor moves over an object or in a scene.
Remarks:The mouse coordinates given are relative to the center of the scene. To make them relative to an object or the top left corner of scene use TransformToObjectCoord or TransformToSceneCoord respectively.
Implicit arguments
Object@ sender
Handle to an associated object; or null.
float mouseX
Horizontal cursor position.
float mouseY
Vertical cursor position.
Sample
event Sample.OnMouseMove { // Get cursor position in scene coordinates Vector2 Point = TransformToSceneCoord(mouseX, mouseY); Print(Point.AsString()); }