Skip to main content
Run any Skill in Manus
with one click

unity-playmode-test

Stars0
Forks0
UpdatedJuly 1, 2026 at 05:32

Unity UI Toolkit のクリック操作を [Test]/[UnityTest] + LogAssert または Assert.That(state) + ClickEvent で回帰テスト化するスキル。シーン読込 → element 取得 → ClickEvent 発火 → ログ assert または ViewModel state assert の最小テンプレを生成し、`u tests run play` で自動実行する手順までカバー。MonoBehaviour 内で `_root` を再 parent するパターン (ScreenConfigRuntime.ExtractScreen 系) で起きる「Q チェーンは取れるがクリックが届かない」罠の Reflection 回避策 (`_root` だけでなく `_viewModel` 等 private collaborator 全般) 付き。Focus / TextField 値入力 / uGUI / monkey test はカバー外。Use when "PlayMode テスト書いて", "ClickEvent を自動化", "u tests run play", "UI 操作の回帰テスト", "[UnityTest]", "LogAssert.Expect", "Assert.That ViewModel", "EditorSceneManager.LoadSceneInPlayMode", "PlayMode test for UI Toolkit".

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
5 files
SKILL.md
readonly