uloop-simulate-mouse-ui
Skill by hatayama
Simulates mouse clicks, long-presses and drags on uGUI and UI Toolkit elements during Unity PlayMode. It uses screen coordinates taken from annotated screenshots. It is for Unity developers who want an AI assistant to test UI interactions.
Install uloop-simulate-mouse-ui
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hatayama/unity-cli-loop /tmp/unity-cli-loop && mkdir -p ~/.claude/skills && cp -r /tmp/unity-cli-loop/.agents/skills/uloop-simulate-mouse-ui ~/.claude/skills/uloop-simulate-mouse-uiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install uloop-simulate-mouse-ui in Claude Code
git clone --depth 1 https://github.com/hatayama/unity-cli-loop /tmp/unity-cli-loop && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/unity-cli-loop/.agents/skills/uloop-simulate-mouse-ui ~/.gemini/antigravity-cli/skills/uloop-simulate-mouse-uiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install uloop-simulate-mouse-ui in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
uloop-simulate-mouse-ui is an agent skill that runs the uloop simulate-mouse-ui command in a Unity project. It sends pointer events to UI elements on uGUI and UI Toolkit while the game is in PlayMode. Targets are chosen from the AnnotatedElements array returned by uloop screenshot with annotation enabled, and the SimX and SimY values are used as screen pixel coordinates with the origin at the top left.
The skill supports Click, LongPress, one-shot Drag, and split drags made of DragStart, DragMove and DragEnd. For uGUI GameObjects, a bypass option can dispatch events to a given hierarchy path when a raycast blocker covers the target. The source also describes checking results with runtime state, logs, or screenshots, and using the uloop-pause-point skill for state transition checks. It is aimed at developers who want an assistant to test Unity UI input.
Written from the project's SKILL.md and checked against it.
What it can do
- ClickClicks at a screen position with the Left, Right or Middle button.
- LongPressPresses and holds at a position for a set duration, up to 30 seconds.
- DragPerforms a one-shot drag from a start point to a destination at a set speed.
- DragStart, DragMove, DragEndSplits a drag into steps so the state can be inspected between them.
- Bypass raycastDispatches pointer events to a named GameObject when a raycast blocker covers it.
- Annotated element coordinatesUses SimX and SimY from annotated screenshot output as click coordinates.
- Pause point checksFollows the uloop-pause-point skill for frame proof when UI input drives a state change.
What you need
- Unity project in PlayMode
- EventSystem and GraphicRaycaster on the Canvas for uGUI targets
- uloop CLI
Try asking
- Click the Start button in the Unity PlayMode UI at its annotated position.
- Long-press the Fire button for 3 seconds in the running Unity game.
- Drag the item from the inventory slot onto the DropZone panel in PlayMode.
Good to know
- Drag actions support the Left button only.
- Calling DragMove or DragEnd without an active drag returns an error.
- Duplicate matches for target-path or drop-target-path make the command fail.
- Click and LongPress on empty space still return Success with no hit object.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/uloop-simulate-mouse-ui/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to uloop-simulate-mouse-ui
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
uloop-simulate-mouse-ui: common questions
Does it work with UI Toolkit?
Yes, UI Toolkit entries can be clicked, long-pressed and dragged at their SimX and SimY coordinates. The bypass and target path options apply to GameObjects only.
Do I need to set up anything for UI Toolkit?
The source says UI Toolkit targets need neither an EventSystem nor a GraphicRaycaster. Only uGUI targets need those components.
Can it run in the Device Simulator?
The source says Device Simulator play view is supported. Coordinates are taken from the simulated device resolution when the annotated screenshot command is used.
How do I install uloop-simulate-mouse-ui?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is uloop-simulate-mouse-ui free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is uloop-simulate-mouse-ui safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to uloop-simulate-mouse-ui?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
