uloop-record-input

Record keyboard and mouse input in Unity PlayMode and export JSON.

500|44|Updated Jun 15, 2025
One-click install
npx skills add https://github.com/hatayama/unity-cli-loop --skill uloop-record-input
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uloop-record-input
Source: https://github.com/hatayama/unity-cli-loop/tree/main/.agents/skills/uloop-record-input
Command: npx skills add https://github.com/hatayama/unity-cli-loop --skill uloop-record-input

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Record PlayMode input from keyboard and mouse and store it as JSON for replay, testing, and bug reproduction.

Core Features & Use Cases

  • Capture per-frame keyboard and mouse state changes during Unity PlayMode
  • Output JSON files to a configurable path for later replay or analysis
  • Enable end-to-end testing and reproducible bug investigation by replaying recorded inputs

Quick Start

Start recording in PlayMode with uloop record-input and stop to save the JSON output to the default path.

Frequently Asked Questions about uloop-record-input

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I record keyboard and mouse input in Unity PlayMode for bug reproduction?

To record keyboard and mouse input in Unity PlayMode for bug reproduction, you can capture per-frame state changes and export them as JSON files. This enables exact replay of gameplay sessions to reliably reproduce intermittent issues.

What is the best way to replay recorded player inputs for Unity end-to-end testing?

Replaying recorded player inputs for Unity end-to-end testing is best achieved by capturing per-frame keyboard and mouse states into JSON. You can then feed these JSON files back into your testing framework to automate gameplay validation.

Does Unity PlayMode input recording require the Input System package?

Yes, Unity PlayMode input recording requires the Input System package to accurately capture device states. You also need a configured output directory to store the resulting JSON files for later replay or gameplay analytics.

Can I configure the output path for JSON files generated from Unity PlayMode recordings?

Yes, you can configure the output path for JSON files generated from Unity PlayMode recordings. The system allows you to specify a directory where per-frame input state differences are saved, enabling organized storage for later analysis.

How does per-frame state diffing work when recording Unity gameplay input?

Per-frame state diffing when recording Unity gameplay input works by capturing only the keyboard and mouse state changes that occur each frame. This minimizes JSON file size while preserving the exact sequence of inputs needed for accurate replay.

What are the limitations of recording Unity PlayMode input for testing?

Limitations of recording Unity PlayMode input include the strict dependency on the Unity Input System package and PlayMode environment. Additionally, recordings only capture keyboard and mouse states, excluding other input devices like gamepads or touch screens.