What problem does it solve?
Simulate precise mouse interactions on Unity PlayMode UI to automate testing and reproduce user pointer events without manual input, enabling deterministic verification of UI behavior.
Core Features & Use Cases
- Click & Long-Press: Trigger PointerDown/PointerUp/PointerClick or sustained pointer-down for UI elements that respond to pointer events.
- One-shot & Split Drags: Perform Drag, DragStart, DragMove, and DragEnd with configurable speed and positions for visual inspection and interaction testing.
- Coordinate-accurate Targeting: Use screen-pixel coordinates (origin top-left) from AnnotatedElements to target frontmost or underlying UI elements reliably.
- Use Case: Automated PlayMode testing that needs to interact with buttons, sliders, draggable lists, or hold-to-activate controls and verify resulting behavior via screenshots or logs.
Quick Start
Run uloop simulate-mouse-ui with the desired action and screen coordinates while Unity is in PlayMode to click, drag, or long-press a UI element.