unity-playmode-testing

Automate Unity Play Mode testing with input simulation and visual verification.

32|6|Updated Sep 6, 2025
One-click install
npx skills add https://github.com/akiojin/unity-mcp-server --skill unity-playmode-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-playmode-testing
Source: https://github.com/akiojin/unity-mcp-server/tree/main/.claude/skills/unity-playmode-testing
Command: npx skills add https://github.com/akiojin/unity-mcp-server --skill unity-playmode-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides PlayMode testing, input simulation, and UI automation in Unity, integrating test execution, visual captures, and console validation to streamline game QA.

Core Features & Use Cases

  • PlayMode control: Start, pause, stop play sessions and monitor editor state.
  • Input & UI automation: Simulate keyboard/mouse inputs and automate UI interactions.
  • Visual validation: Capture screenshots or videos and perform basic analyses to verify UI states.

Quick Start

Start a PlayMode session, simulate a button click in a UI test, and capture a game screenshot for verification.

Frequently Asked Questions about unity-playmode-testing

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

FAQPage Schema
How do I automate Play Mode testing in Unity?

Play Mode testing in Unity automates game verification by controlling play sessions, simulating player inputs, and validating UI state. Use API-based controls to start, pause, and stop Play Mode, then simulate keyboard, mouse, gamepad, or touch input to test interactions across uGUI, UI Toolkit, and IMGUI scenes.

Can I simulate keyboard and mouse input during Unity testing?

Yes, comprehensive input simulation supports keyboard, mouse, gamepad, and touch input during Play Mode tests. Automate UI interactions and player actions across test scenes without manual intervention, enabling repeatable functional validation.

How do I capture and verify UI state in Unity tests?

Capture screenshots or video during Play Mode execution, then perform visual verification and console log validation to confirm UI correctness. Combine media capture with state polling to validate UI elements across different rendering frameworks and test scenes.

What UI frameworks does Play Mode testing support?

Play Mode testing handles UI automation and validation across uGUI, UI Toolkit, and IMGUI frameworks. Support for multiple rendering systems lets you test diverse UI implementations within the same test execution workflow.

Can I batch multiple Play Mode test actions together?

Yes, batch actions enable efficient test execution by grouping Play Mode controls, input simulation, and UI element path handling into single operations. Execute complex test sequences with consolidated state polling and media capture across multiple scenes.

What happens if Play Mode testing finds console errors during execution?

Console log validation automatically flags errors and warnings during test execution. Combine console monitoring with visual verification and UI state checks to identify functional failures, performance issues, or unexpected editor behavior during Play Mode sessions.

Related Skills