[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77X4B3CJMDBYK5RT14V44S0":3,"skill-same:01M77X4B3CJMDBYK5RT14V44S0":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":47},"01M77X4B3CJMDBYK5RT14V44S0","unity-plugin",null,"Control Unity Editor via OpenClaw Unity Plugin. Use for Unity game development tasks including scene management, GameObject\u002FComponent manipulation, debugging, input simulation, and Play mode control. Triggers on Unity-related requests like inspecting scenes, creating objects, taking screenshots, testing gameplay, or controlling the Editor.","Jinhong270\u002FAI-Agent","Jinhong270","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193703602?v=4","01M77SB4J7ATDYATSD7AW4B8XP","01M77SB4JWRQWNGTTR291BHMQP",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-plugin\nversion: 1.6.1\ndescription: Control Unity Editor via OpenClaw Unity Plugin. Use for Unity game development tasks including scene management, GameObject\u002FComponent manipulation, debugging, input simulation, and Play mode control. Triggers on Unity-related requests like inspecting scenes, creating objects, taking screenshots, testing gameplay, or controlling the Editor.\nhomepage: https:\u002F\u002Fgithub.com\u002FTomLeeLive\u002Fopenclaw-unity-skill\nauthor: Tom Jaejoon Lee\ndisableModelInvocation: true\n---\n\n# Unity Plugin Skill\n\nControl Unity Editor through **~100 built-in tools**. Works in both Editor and Play mode.\n\n## Connection Modes\n\n### 1. OpenClaw Gateway (Remote)\nFor Telegram, Discord, and other OpenClaw channels:\n- Auto-connects when Unity opens\n- Configure in: Window → OpenClaw Plugin → Settings\n\n### 2. MCP Bridge (Local)\nFor Claude Code, Cursor, and local AI tools:\n- Start: Window → OpenClaw Plugin → MCP Bridge → Start\n- Default port: 27182\n- Add to Claude Code: `claude mcp add unity -- node \u003Cpath>\u002FMCP~\u002Findex.js`\n\n## First-Time Setup\n\nIf `unity_execute` tool is not available, install the gateway extension:\n\n```bash\n# From skill directory\n.\u002Fscripts\u002Finstall-extension.sh\n\n# Restart gateway\nopenclaw gateway restart\n```\n\nThe extension files are in `extension\u002F` directory.\n\n### What install-extension.sh Does\n\n```bash\n# 1. Copies extension files from skill to gateway\n#    Source: \u003Cskill>\u002Fextension\u002F\n#    Destination: ~\u002F.openclaw\u002Fextensions\u002Funity\u002F\n\n# 2. Files installed:\n#    - index.ts     # Extension entry point (HTTP handlers, tools)\n#    - package.json # Extension metadata\n\n# After installation, restart gateway to load the extension.\n```\n\n## 🔐 Security\n\n이 스킬은 `disableModelInvocation: true`로 설정되어 있습니다.\n- AI가 자동으로 도구를 호출하지 않음\n- 사용자가 명시적으로 요청한 작업만 실행\n\n설정 변경 방법은 [README.md](README.md)를 참조하세요.\n\n## Quick Reference\n\n### Core Tools\n\n| Category | Key Tools |\n|----------|-----------|\n| **Scene** | `scene.getActive`, `scene.getData`, `scene.load`, `scene.open`, `scene.save` |\n| **GameObject** | `gameobject.find`, `gameobject.getAll`, `gameobject.create`, `gameobject.destroy` |\n| **Component** | `component.get`, `component.set`, `component.add`, `component.remove` |\n| **Transform** | `transform.setPosition`, `transform.setRotation`, `transform.setScale` |\n| **Debug** | `debug.hierarchy`, `debug.screenshot`, `console.getLogs` |\n| **Input** | `input.clickUI`, `input.type`, `input.keyPress`, `input.mouseClick` |\n| **Editor** | `editor.getState`, `editor.play`, `editor.stop`, `editor.refresh` |\n| **Material** | `material.create`, `material.assign`, `material.modify`, `material.getInfo` |\n| **Prefab** | `prefab.create`, `prefab.instantiate`, `prefab.open`, `prefab.save` |\n| **Asset** | `asset.find`, `asset.copy`, `asset.move`, `asset.delete` |\n| **Package** | `package.add`, `package.remove`, `package.list`, `package.search` |\n| **Test** | `test.run`, `test.list`, `test.getResults` |\n\n## Common Workflows\n\n### 1. Scene Inspection\n\n```\nunity_execute: debug.hierarchy {depth: 2}\nunity_execute: scene.getActive\n```\n\n### 2. Find & Modify Objects\n\n```\nunity_execute: gameobject.find {name: \"Player\"}\nunity_execute: component.get {name: \"Player\", componentType: \"Transform\"}\nunity_execute: transform.setPosition {name: \"Player\", x: 0, y: 5, z: 0}\n```\n\n### 3. UI Testing\n\n```\nunity_execute: input.clickUI {name: \"PlayButton\"}\nunity_execute: input.type {text: \"TestUser\", elementName: \"UsernameInput\"}\nunity_execute: debug.screenshot\n```\n\n### 4. Play Mode Control\n\n```\nunity_execute: editor.play              # Enter Play mode\nunity_execute: editor.stop              # Exit Play mode\nunity_execute: editor.getState          # Check current state\nunity_execute: editor.pause             # Pause\nunity_execute: editor.unpause           # Resume\n```\n\n### 5. Material Creation\n\n```\nunity_execute: material.create {name: \"RedMetal\", color: \"#FF0000\", metallic: 0.8}\nunity_execute: material.assign {gameObjectName: \"Player\", materialPath: \"Assets\u002FMaterials\u002FRedMetal.mat\"}\nunity_execute: material.modify {path: \"Assets\u002FMaterials\u002FRedMetal.mat\", metallic: 1.0, emission: \"#FF4444\"}\n```\n\n### 6. Prefab Workflow\n\n```\nunity_execute: prefab.create {gameObjectName: \"Player\", path: \"Assets\u002FPrefabs\u002FPlayer.prefab\"}\nunity_execute: prefab.instantiate {prefabPath: \"Assets\u002FPrefabs\u002FPlayer.prefab\", x: 0, y: 1, z: 0}\nunity_execute: prefab.open {path: \"Assets\u002FPrefabs\u002FPlayer.prefab\"}\nunity_execute: prefab.save\nunity_execute: prefab.close\n```\n\n### 7. Asset Management\n\n```\nunity_execute: asset.find {query: \"Player\", type: \"Prefab\"}\nunity_execute: asset.copy {sourcePath: \"Assets\u002FPrefabs\u002FPlayer.prefab\", destPath: \"Assets\u002FBackup\u002FPlayer.prefab\"}\nunity_execute: asset.move {sourcePath: \"Assets\u002FOld\u002FItem.prefab\", destPath: \"Assets\u002FNew\u002FItem.prefab\"}\n```\n\n### 8. Package Management\n\n```\nunity_execute: package.list\nunity_execute: package.search {query: \"TextMeshPro\"}\nunity_execute: package.add {packageName: \"com.unity.textmeshpro\"}\nunity_execute: package.add {gitUrl: \"https:\u002F\u002Fgithub.com\u002Fexample\u002Fpackage.git\"}\n```\n\n### 9. Test Running\n\n```\nunity_execute: test.list {testMode: \"EditMode\"}\nunity_execute: test.run {testMode: \"EditMode\", filter: \"PlayerTests\"}\nunity_execute: test.getResults\n```\n\n### 10. Script Execution (Enhanced)\n\n```\n# Debug logging\nunity_execute: script.execute {code: \"Debug.Log('Hello')\"}\n\n# Time manipulation\nunity_execute: script.execute {code: \"Time.timeScale = 0.5\"}\n\n# PlayerPrefs\nunity_execute: script.execute {code: \"PlayerPrefs.SetInt('score', 100)\"}\n\n# Reflection-based method calls\nunity_execute: script.execute {code: \"MyClass.MyMethod()\"}\nunity_execute: script.execute {code: \"MyClass.MyStaticMethod('param1', 123)\"}\n```\n\n## Tool Categories (~100 tools)\n\n### Console (3 tools)\n- `console.getLogs` - Get logs with optional type filter (Log\u002FWarning\u002FError)\n- `console.getErrors` - Get error\u002Fexception logs (with optional warnings)\n- `console.clear` - Clear captured logs\n\n### Scene (7 tools)\n- `scene.list` - List scenes in build settings\n- `scene.getActive` - Get active scene info\n- `scene.getData` - Get full hierarchy data\n- `scene.load` - Load scene by name (Play mode)\n- `scene.open` - Open scene in Editor mode\n- `scene.save` - Save active scene (Editor mode)\n- `scene.saveAll` - Save all open scenes (Editor mode)\n\n### GameObject (8 tools)\n- `gameobject.find` - Find by name, tag, or component\n- `gameobject.getAll` - Get all GameObjects with filtering\n- `gameobject.create` - Create object or primitive (Cube, Sphere, etc.)\n- `gameobject.destroy` - Destroy object\n- `gameobject.delete` - Delete object (alias for destroy)\n- `gameobject.getData` - Get detailed data\n- `gameobject.setActive` - Enable\u002Fdisable\n- `gameobject.setParent` - Change hierarchy\n\n### Transform (6 tools)\n- `transform.getPosition` - Get world position {x, y, z}\n- `transform.getRotation` - Get Euler rotation {x, y, z}\n- `transform.getScale` - Get local scale {x, y, z}\n- `transform.setPosition` - Set world position {x, y, z}\n- `transform.setRotation` - Set Euler rotation\n- `transform.setScale` - Set local scale\n\n### Component (5 tools)\n- `component.add` - Add component by type name\n- `component.remove` - Remove component\n- `component.get` - Get component data\u002Fproperties\n- `component.set` - Set field\u002Fproperty value\n- `component.list` - List available component types\n\n### Script (3 tools)\n- `script.execute` - Execute code: Debug.Log, Time, PlayerPrefs, **reflection calls**\n- `script.read` - Read script file\n- `script.list` - List project scripts\n\n### Application (4 tools)\n- `app.getState` - Get play mode, FPS, time\n- `app.play` - Enter\u002Fexit Play mode\n- `app.pause` - Toggle pause\n- `app.stop` - Stop Play mode\n\n### Debug (3 tools)\n- `debug.log` - Write to console\n- `debug.screenshot` - Capture screenshot\n- `debug.hierarchy` - Text hierarchy view\n\n### Editor (9 tools)\n- `editor.refresh` - Refresh AssetDatabase (triggers recompile)\n- `editor.recompile` - Request script recompilation\n- `editor.domainReload` - Force domain reload\n- `editor.focusWindow` - Focus window (game\u002Fscene\u002Fconsole\u002Fhierarchy\u002Fproject\u002Finspector)\n- `editor.listWindows` - List open windows\n- `editor.getState` - Get editor state\n- `editor.play` - Enter Play mode\n- `editor.stop` - Exit Play mode\n- `editor.pause` \u002F `editor.unpause` - Pause control\n\n### Input Simulation (10 tools)\n- `input.keyPress` - Press and release key\n- `input.keyDown` \u002F `input.keyUp` - Hold\u002Frelease key\n- `input.type` - Type text into field\n- `input.mouseMove` - Move cursor\n- `input.mouseClick` - Click at position\n- `input.mouseDrag` - Drag operation\n- `input.mouseScroll` - Scroll wheel\n- `input.getMousePosition` - Get cursor position\n- `input.clickUI` - Click UI element by name\n\n### Material (5 tools) - NEW in v1.5.0\n- `material.create` - Create material with shader, color, metallic, smoothness\n- `material.assign` - Assign material to GameObject\n- `material.modify` - Modify material properties (color, metallic, emission)\n- `material.getInfo` - Get detailed material info with all shader properties\n- `material.list` - List materials in project with filtering\n\n### Prefab (5 tools) - NEW in v1.5.0\n- `prefab.create` - Create prefab from scene GameObject\n- `prefab.instantiate` - Instantiate prefab in scene with position\n- `prefab.open` - Open prefab for editing\n- `prefab.close` - Close prefab editing mode\n- `prefab.save` - Save currently edited prefab\n\n### Asset (7 tools) - NEW in v1.5.0\n- `asset.find` - Search assets by query, type, folder\n- `asset.copy` - Copy asset to new path\n- `asset.move` - Move\u002Frename asset\n- `asset.delete` - Delete asset (with trash option)\n- `asset.refresh` - Refresh AssetDatabase\n- `asset.import` - Import\u002Freimport specific asset\n- `asset.getPath` - Get asset path by name\n\n### Package Manager (4 tools) - NEW in v1.5.0\n- `package.add` - Install package by name or git URL\n- `package.remove` - Remove installed package\n- `package.list` - List installed packages\n- `package.search` - Search Unity package registry\n\n### Test Runner (3 tools) - NEW in v1.5.0\n- `test.run` - Run EditMode\u002FPlayMode tests with filtering\n- `test.list` - List available tests\n- `test.getResults` - Get last test run results\n\n### Batch Execution (1 tool) - NEW in v1.6.0\n- `batch.execute` - Execute multiple tools in one call (10-100x performance)\n  - `commands`: Array of {tool, params} objects\n  - `stopOnError`: Stop on first error (default: false)\n\n### Session (1 tool) - NEW in v1.6.0\n- `session.getInfo` - Get session info (project, processId, machineName, sessionId)\n\n### ScriptableObject (6 tools) - NEW in v1.6.0\n- `scriptableobject.create` - Create new ScriptableObject asset\n- `scriptableobject.load` - Load and inspect ScriptableObject fields\n- `scriptableobject.save` - Save ScriptableObject changes\n- `scriptableobject.getField` - Get specific field value\n- `scriptableobject.setField` - Set field value with auto-save\n- `scriptableobject.list` - List ScriptableObjects in project\n\n### Shader (3 tools) - NEW in v1.6.0\n- `shader.list` - List shaders in project\n- `shader.getInfo` - Get shader properties and info\n- `shader.getKeywords` - Get shader keywords\n\n### Texture (5 tools) - NEW in v1.6.0\n- `texture.create` - Create new texture with color fill\n- `texture.getInfo` - Get texture info (size, format, import settings)\n- `texture.setPixels` - Fill region with color\n- `texture.resize` - Resize texture via import settings\n- `texture.list` - List textures in project\n\n## Custom Tools API - v1.6.0\n\nRegister project-specific tools:\n\n```csharp\nOpenClawCustomTools.Register(\n    \"mygame.getScore\",\n    \"Get current score\",\n    (args) => new { success = true, score = GameManager.Score }\n);\n```\n\n## MCP Resources - v1.6.0\n\nAccess Unity data via MCP resource URIs:\n\n| URI | Description |\n|-----|-------------|\n| `unity:\u002F\u002Fscene\u002Fhierarchy` | Scene hierarchy |\n| `unity:\u002F\u002Fscene\u002Factive` | Active scene info |\n| `unity:\u002F\u002Fproject\u002Fscripts` | Script list |\n| `unity:\u002F\u002Fproject\u002Fscenes` | Scene list |\n| `unity:\u002F\u002Feditor\u002Fstate` | Editor state |\n| `unity:\u002F\u002Fconsole\u002Flogs` | Console logs |\n| `unity:\u002F\u002Fsession\u002Finfo` | Session info |\n\n## Tips\n\n### Screenshot Modes\n- **Play mode**: `ScreenCapture` - includes all UI overlays\n- **Editor mode**: `Camera.main.Render()` - no overlay UI\n- Use `{method: \"camera\"}` for camera-only capture\n\n### Finding Objects\n```\ngameobject.find {name: \"Player\"}           # By exact name\ngameobject.find {tag: \"Enemy\"}             # By tag\ngameobject.find {componentType: \"Camera\"}  # By component\ngameobject.getAll {activeOnly: true}       # All active objects\n```\n\n### Script Recompilation\nUnity may not auto-recompile after code changes. Use:\n```\neditor.refresh    # Full asset refresh + recompile\n```\n\n### Play Mode Transitions\n- Plugin survives Play mode transitions via SessionState\n- If connection lost, wait for auto-reconnect or use Window → OpenClaw Plugin → Settings → Connect\n\n### MCP Bridge Usage\nFor Claude Code \u002F Cursor integration:\n1. Start: Window → OpenClaw Plugin → MCP Bridge → Start\n2. Register: `claude mcp add unity -- node \u002Fpath\u002Fto\u002FMCP~\u002Findex.js`\n3. Verify: `curl http:\u002F\u002F127.0.0.1:27182\u002Fstatus`\n\n### Input Simulation Limitation\nKeyboard\u002Fmouse simulation works for **UI interactions** but NOT for `Input.GetKey()`. For gameplay testing:\n- Use `transform.setPosition` to move objects directly\n- Or migrate to Unity's **new Input System**\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Tool timeout | Check Unity is responding, try `editor.getState` |\n| Gateway no connection | Check Window → OpenClaw Plugin → Settings |\n| MCP no connection | Start MCP Bridge, verify port 27182 |\n| Scripts not updating | Use `editor.refresh` to force recompile |\n| Wrong screenshot | Use Play mode for game view with UI |\n| MCP 504 timeout | Unity busy or MCP Bridge not started |\n| Test Runner not found | Install `com.unity.test-framework` package |\n\n## Links\n\n- **Skill Repository:** https:\u002F\u002Fgithub.com\u002FTomLeeLive\u002Fopenclaw-unity-skill\n- **Plugin Repository:** https:\u002F\u002Fgithub.com\u002FTomLeeLive\u002Fopenclaw-unity-plugin\n- **OpenClaw Docs:** https:\u002F\u002Fdocs.openclaw.ai\n- **MCP Setup Guide:** See Plugin Repository → Documentation~\u002FSETUP_GUIDE.md\n\n## License\n\nMIT License - See LICENSE file\n","# Unity Plugin Skill\n\nControl Unity Editor through **~100 built-in tools**. Works in both Editor and Play mode.\n\n## Connection Modes\n\n### 1. OpenClaw Gateway (Remote)\nFor Telegram, Discord, and other OpenClaw channels:\n- Auto-connects when Unity opens\n- Configure in: Window → OpenClaw Plugin → Settings\n\n### 2. MCP Bridge (Local)\nFor Claude Code, Cursor, and local AI tools:\n- Start: Window → OpenClaw Plugin → MCP Bridge → Start\n- Default port: 27182\n- Add to Claude Code: `claude mcp add unity -- node \u003Cpath>\u002FMCP~\u002Findex.js`\n\n## First-Time Setup\n\nIf `unity_execute` tool is not available, install the gateway extension:\n\n```bash\n# From skill directory\n.\u002Fscripts\u002Finstall-extension.sh\n\n# Restart gateway\nopenclaw gateway restart\n```\n\nThe extension files are in `extension\u002F` directory.\n\n### What install-extension.sh Does\n\n```bash\n# 1. Copies extension files from skill to gateway\n#    Source: \u003Cskill>\u002Fextension\u002F\n#    Destination: ~\u002F.openclaw\u002Fextensions\u002Funity\u002F\n\n# 2. Files installed:\n#    - index.ts     # Extension entry point (HTTP handlers, tools)\n#    - package.json # Extension metadata\n\n# After installation, restart gateway to load the extension.\n```\n\n## 🔐 Security\n\n이 스킬은 `disableModelInvocation: true`로 설정되어 있습니다.\n- AI가 자동으로 도구를 호출하지 않음\n- 사용자가 명시적으로 요청한 작업만 실행\n\n설정 변경 방법은 [README.md](README.md)를 참조하세요.\n\n## Quick Reference\n\n### Core Tools\n\n| Category | Key Tools |\n|----------|-----------|\n| **Scene** | `scene.getActive`, `scene.getData`, `scene.load`, `scene.open`, `scene.save` |\n| **GameObject** | `gameobject.find`, `gameobject.getAll`, `gameobject.create`, `gameobject.destroy` |\n| **Component** | `component.get`, `component.set`, `component.add`, `component.remove` |\n| **Transform** | `transform.setPosition`, `transform.setRotation`, `transform.setScale` |\n| **Debug** | `debug.hierarchy`, `debug.screenshot`, `console.getLogs` |\n| **Input** | `input.clickUI`, `input.type`, `input.keyPress`, `input.mouseClick` |\n| **Editor** | `editor.getState`, `editor.play`, `editor.stop`, `editor.refresh` |\n| **Material** | `material.create`, `material.assign`, `material.modify`, `material.getInfo` |\n| **Prefab** | `prefab.create`, `prefab.instantiate`, `prefab.open`, `prefab.save` |\n| **Asset** | `asset.find`, `asset.copy`, `asset.move`, `asset.delete` |\n| **Package** | `package.add`, `package.remove`, `package.list`, `package.search` |\n| **Test** | `test.run`, `test.list`, `test.getResults` |\n\n## Common Workflows\n\n### 1. Scene Inspection\n\n```\nunity_execute: debug.hierarchy {depth: 2}\nunity_execute: scene.getActive\n```\n\n### 2. Find & Modify Objects\n\n```\nunity_execute: gameobject.find {name: \"Player\"}\nunity_execute: component.get {name: \"Player\", componentType: \"Transform\"}\nunity_execute: transform.setPosition {name: \"Player\", x: 0, y: 5, z: 0}\n```\n\n### 3. UI Testing\n\n```\nunity_execute: input.clickUI {name: \"PlayButton\"}\nunity_execute: input.type {text: \"TestUser\", elementName: \"UsernameInput\"}\nunity_execute: debug.screenshot\n```\n\n### 4. Play Mode Control\n\n```\nunity_execute: editor.play              # Enter Play mode\nunity_execute: editor.stop              # Exit Play mode\nunity_execute: editor.getState          # Check current state\nunity_execute: editor.pause             # Pause\nunity_execute: editor.unpause           # Resume\n```\n\n### 5. Material Creation\n\n```\nunity_execute: material.create {name: \"RedMetal\", color: \"#FF0000\", metallic: 0.8}\nunity_execute: material.assign {gameObjectName: \"Player\", materialPath: \"Assets\u002FMaterials\u002FRedMetal.mat\"}\nunity_execute: material.modify {path: \"Assets\u002FMaterials\u002FRedMetal.mat\", metallic: 1.0, emission: \"#FF4444\"}\n```\n\n### 6. Prefab Workflow\n\n```\nunity_execute: prefab.create {gameObjectName: \"Player\", path: \"Assets\u002FPrefabs\u002FPlayer.prefab\"}\nunity_execute: prefab.instantiate {prefabPath: \"Assets\u002FPrefabs\u002FPlayer.prefab\", x: 0, y: 1, z: 0}\nunity_execute: prefab.open {path: \"Assets\u002FPrefabs\u002FPlayer.prefab\"}\nunity_execute: prefab.save\nunity_execute: prefab.close\n```\n\n### 7. Asset Management\n\n```\nunity_execute: asset.find {query: \"Player\", type: \"Prefab\"}\nunity_execute: asset.copy {sourcePath: \"Assets\u002FPrefabs\u002FPlayer.prefab\", destPath: \"Assets\u002FBackup\u002FPlayer.prefab\"}\nunity_execute: asset.move {sourcePath: \"Assets\u002FOld\u002FItem.prefab\", destPath: \"Assets\u002FNew\u002FItem.prefab\"}\n```\n\n### 8. Package Management\n\n```\nunity_execute: package.list\nunity_execute: package.search {query: \"TextMeshPro\"}\nunity_execute: package.add {packageName: \"com.unity.textmeshpro\"}\nunity_execute: package.add {gitUrl: \"https:\u002F\u002Fgithub.com\u002Fexample\u002Fpackage.git\"}\n```\n\n### 9. Test Running\n\n```\nunity_execute: test.list {testMode: \"EditMode\"}\nunity_execute: test.run {testMode: \"EditMode\", filter: \"PlayerTests\"}\nunity_execute: test.getResults\n```\n\n### 10. Script Execution (Enhanced)\n\n```\n# Debug logging\nunity_execute: script.execute {code: \"Debug.Log('Hello')\"}\n\n# Time manipulation\nunity_execute: script.execute {code: \"Time.timeScale = 0.5\"}\n\n# PlayerPrefs\nunity_execute: script.execute {code: \"PlayerPrefs.SetInt('score', 100)\"}\n\n# Reflection-based method calls\nunity_execute: script.execute {code: \"MyClass.MyMethod()\"}\nunity_execute: script.execute {code: \"MyClass.MyStaticMethod('param1', 123)\"}\n```\n\n## Tool Categories (~100 tools)\n\n### Console (3 tools)\n- `console.getLogs` - Get logs with optional type filter (Log\u002FWarning\u002FError)\n- `console.getErrors` - Get error\u002Fexception logs (with optional warnings)\n- `console.clear` - Clear captured logs\n\n### Scene (7 tools)\n- `scene.list` - List scenes in build settings\n- `scene.getActive` - Get active scene info\n- `scene.getData` - Get full hierarchy data\n- `scene.load` - Load scene by name (Play mode)\n- `scene.open` - Open scene in Editor mode\n- `scene.save` - Save active scene (Editor mode)\n- `scene.saveAll` - Save all open scenes (Editor mode)\n\n### GameObject (8 tools)\n- `gameobject.find` - Find by name, tag, or component\n- `gameobject.getAll` - Get all GameObjects with filtering\n- `gameobject.create` - Create object or primitive (Cube, Sphere, etc.)\n- `gameobject.destroy` - Destroy object\n- `gameobject.delete` - Delete object (alias for destroy)\n- `gameobject.getData` - Get detailed data\n- `gameobject.setActive` - Enable\u002Fdisable\n- `gameobject.setParent` - Change hierarchy\n\n### Transform (6 tools)\n- `transform.getPosition` - Get world position {x, y, z}\n- `transform.getRotation` - Get Euler rotation {x, y, z}\n- `transform.getScale` - Get local scale {x, y, z}\n- `transform.setPosition` - Set world position {x, y, z}\n- `transform.setRotation` - Set Euler rotation\n- `transform.setScale` - Set local scale\n\n### Component (5 tools)\n- `component.add` - Add component by type name\n- `component.remove` - Remove component\n- `component.get` - Get component data\u002Fproperties\n- `component.set` - Set field\u002Fproperty value\n- `component.list` - List available component types\n\n### Script (3 tools)\n- `script.execute` - Execute code: Debug.Log, Time, PlayerPrefs, **reflection calls**\n- `script.read` - Read script file\n- `script.list` - List project scripts\n\n### Application (4 tools)\n- `app.getState` - Get play mode, FPS, time\n- `app.play` - Enter\u002Fexit Play mode\n- `app.pause` - Toggle pause\n- `app.stop` - Stop Play mode\n\n### Debug (3 tools)\n- `debug.log` - Write to console\n- `debug.screenshot` - Capture screenshot\n- `debug.hierarchy` - Text hierarchy view\n\n### Editor (9 tools)\n- `editor.refresh` - Refresh AssetDatabase (triggers recompile)\n- `editor.recompile` - Request script recompilation\n- `editor.domainReload` - Force domain reload\n- `editor.focusWindow` - Focus window (game\u002Fscene\u002Fconsole\u002Fhierarchy\u002Fproject\u002Finspector)\n- `editor.listWindows` - List open windows\n- `editor.getState` - Get editor state\n- `editor.play` - Enter Play mode\n- `editor.stop` - Exit Play mode\n- `editor.pause` \u002F `editor.unpause` - Pause control\n\n### Input Simulation (10 tools)\n- `input.keyPress` - Press and release key\n- `input.keyDown` \u002F `input.keyUp` - Hold\u002Frelease key\n- `input.type` - Type text into field\n- `input.mouseMove` - Move cursor\n- `input.mouseClick` - Click at position\n- `input.mouseDrag` - Drag operation\n- `input.mouseScroll` - Scroll wheel\n- `input.getMousePosition` - Get cursor position\n- `input.clickUI` - Click UI element by name\n\n### Material (5 tools) - NEW in v1.5.0\n- `material.create` - Create material with shader, color, metallic, smoothness\n- `material.assign` - Assign material to GameObject\n- `material.modify` - Modify material properties (color, metallic, emission)\n- `material.getInfo` - Get detailed material info with all shader properties\n- `material.list` - List materials in project with filtering\n\n### Prefab (5 tools) - NEW in v1.5.0\n- `prefab.create` - Create prefab from scene GameObject\n- `prefab.instantiate` - Instantiate prefab in scene with position\n- `prefab.open` - Open prefab for editing\n- `prefab.close` - Close prefab editing mode\n- `prefab.save` - Save currently edited prefab\n\n### Asset (7 tools) - NEW in v1.5.0\n- `asset.find` - Search assets by query, type, folder\n- `asset.copy` - Copy asset to new path\n- `asset.move` - Move\u002Frename asset\n- `asset.delete` - Delete asset (with trash option)\n- `asset.refresh` - Refresh AssetDatabase\n- `asset.import` - Import\u002Freimport specific asset\n- `asset.getPath` - Get asset path by name\n\n### Package Manager (4 tools) - NEW in v1.5.0\n- `package.add` - Install package by name or git URL\n- `package.remove` - Remove installed package\n- `package.list` - List installed packages\n- `package.search` - Search Unity package registry\n\n### Test Runner (3 tools) - NEW in v1.5.0\n- `test.run` - Run EditMode\u002FPlayMode tests with filtering\n- `test.list` - List available tests\n- `test.getResults` - Get last test run results\n\n### Batch Execution (1 tool) - NEW in v1.6.0\n- `batch.execute` - Execute multiple tools in one call (10-100x performance)\n  - `commands`: Array of {tool, params} objects\n  - `stopOnError`: Stop on first error (default: false)\n\n### Session (1 tool) - NEW in v1.6.0\n- `session.getInfo` - Get session info (project, processId, machineName, sessionId)\n\n### ScriptableObject (6 tools) - NEW in v1.6.0\n- `scriptableobject.create` - Create new ScriptableObject asset\n- `scriptableobject.load` - Load and inspect ScriptableObject fields\n- `scriptableobject.save` - Save ScriptableObject changes\n- `scriptableobject.getField` - Get specific field value\n- `scriptableobject.setField` - Set field value with auto-save\n- `scriptableobject.list` - List ScriptableObjects in project\n\n### Shader (3 tools) - NEW in v1.6.0\n- `shader.list` - List shaders in project\n- `shader.getInfo` - Get shader properties and info\n- `shader.getKeywords` - Get shader keywords\n\n### Texture (5 tools) - NEW in v1.6.0\n- `texture.create` - Create new texture with color fill\n- `texture.getInfo` - Get texture info (size, format, import settings)\n- `texture.setPixels` - Fill region with color\n- `texture.resize` - Resize texture via import settings\n- `texture.list` - List textures in project\n\n## Custom Tools API - v1.6.0\n\nRegister project-specific tools:\n\n```csharp\nOpenClawCustomTools.Register(\n    \"mygame.getScore\",\n    \"Get current score\",\n    (args) => new { success = true, score = GameManager.Score }\n);\n```\n\n## MCP Resources - v1.6.0\n\nAccess Unity data via MCP resource URIs:\n\n| URI | Description |\n|-----|-------------|\n| `unity:\u002F\u002Fscene\u002Fhierarchy` | Scene hierarchy |\n| `unity:\u002F\u002Fscene\u002Factive` | Active scene info |\n| `unity:\u002F\u002Fproject\u002Fscripts` | Script list |\n| `unity:\u002F\u002Fproject\u002Fscenes` | Scene list |\n| `unity:\u002F\u002Feditor\u002Fstate` | Editor state |\n| `unity:\u002F\u002Fconsole\u002Flogs` | Console logs |\n| `unity:\u002F\u002Fsession\u002Finfo` | Session info |\n\n## Tips\n\n### Screenshot Modes\n- **Play mode**: `ScreenCapture` - includes all UI overlays\n- **Editor mode**: `Camera.main.Render()` - no overlay UI\n- Use `{method: \"camera\"}` for camera-only capture\n\n### Finding Objects\n```\ngameobject.find {name: \"Player\"}           # By exact name\ngameobject.find {tag: \"Enemy\"}             # By tag\ngameobject.find {componentType: \"Camera\"}  # By component\ngameobject.getAll {activeOnly: true}       # All active objects\n```\n\n### Script Recompilation\nUnity may not auto-recompile after code changes. Use:\n```\neditor.refresh    # Full asset refresh + recompile\n```\n\n### Play Mode Transitions\n- Plugin survives Play mode transitions via SessionState\n- If connection lost, wait for auto-reconnect or use Window → OpenClaw Plugin → Settings → Connect\n\n### MCP Bridge Usage\nFor Claude Code \u002F Cursor integration:\n1. Start: Window → OpenClaw Plugin → MCP Bridge → Start\n2. Register: `claude mcp add unity -- node \u002Fpath\u002Fto\u002FMCP~\u002Findex.js`\n3. Verify: `curl http:\u002F\u002F127.0.0.1:27182\u002Fstatus`\n\n### Input Simulation Limitation\nKeyboard\u002Fmouse simulation works for **UI interactions** but NOT for `Input.GetKey()`. For gameplay testing:\n- Use `transform.setPosition` to move objects directly\n- Or migrate to Unity's **new Input System**\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Tool timeout | Check Unity is responding, try `editor.getState` |\n| Gateway no connection | Check Window → OpenClaw Plugin → Settings |\n| MCP no connection | Start MCP Bridge, verify port 27182 |\n| Scripts not updating | Use `editor.refresh` to force recompile |\n| Wrong screenshot | Use Play mode for game view with UI |\n| MCP 504 timeout | Unity busy or MCP Bridge not started |\n| Test Runner not found | Install `com.unity.test-framework` package |\n\n## Links\n\n- **Skill Repository:** https:\u002F\u002Fgithub.com\u002FTomLeeLive\u002Fopenclaw-unity-skill\n- **Plugin Repository:** https:\u002F\u002Fgithub.com\u002FTomLeeLive\u002Fopenclaw-unity-plugin\n- **OpenClaw Docs:** https:\u002F\u002Fdocs.openclaw.ai\n- **MCP Setup Guide:** See Plugin Repository → Documentation~\u002FSETUP_GUIDE.md\n\n## License\n\nMIT License - See LICENSE file\n",{"name":5,"author":24,"version":25,"homepage":26,"description":7,"disableModelInvocation":27},"Tom Jaejoon Lee","1.6.1","https:\u002F\u002Fgithub.com\u002FTomLeeLive\u002Fopenclaw-unity-skill",true,"main","cb3f39689b7b3a95edb2753c8f3e97a313b885fc","Xiao-Q\u002Fskills\u002Fopenclaw-unity-skill",0,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent","https:\u002F\u002Fgithub.com\u002FJinhong270","2026-09-30 23:42:56",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":27},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Jinhong270\u002FAI-Agent --skill unity-plugin",{"tool":41,"command":42},"bunx","bunx skills add Jinhong270\u002FAI-Agent --skill unity-plugin",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Jinhong270\u002FAI-Agent --skill unity-plugin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002FSKILL.md",[48,54,60,64,68,73,77,81],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"_meta.json","REFERENCE","参考文档",139,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002F_meta.json",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"extension\u002Findex.ts","SCRIPT","脚本",13166,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002Fextension\u002Findex.ts",{"path":61,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":62,"sourceHtmlUrl":63},"extension\u002Fopenclaw.plugin.json",378,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002Fextension\u002Fopenclaw.plugin.json",{"path":65,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":66,"sourceHtmlUrl":67},"extension\u002Fpackage.json",189,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002Fextension\u002Fpackage.json",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":15},"LICENSE.md","LICENSE","许可证",10759,{"path":74,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":75,"sourceHtmlUrl":76},"README.md",4280,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002FREADME.md",{"path":78,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Ftools.md",13804,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002Freferences\u002Ftools.md",{"path":82,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Finstall-extension.sh",716,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fopenclaw-unity-skill\u002Fscripts\u002Finstall-extension.sh",[86,94,102,109,116,123],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M77Z0W1XHJVFS4M183VZTF3Z","xlsx","Open, create, read, analyze, edit, repair, or validate spreadsheet files (.xlsx, .xlsm, .xltx, .csv, .tsv) with zero format loss, with first-class support for Chinese \u002F CJK content. Use whenever the user asks to create, build, modify, fill, analyze, read, repair, validate, or format any spreadsheet, workbook, report, dashboard, budget, financial model, pivot table, or tabular data file. Handles Chinese text, encodings (UTF-8 \u002F GB18030 \u002F GBK), full-width characters, CJK fonts in rendering, and Chinese number\u002Fdate conventions (¥, 万\u002F亿, 年\u002F月\u002F日). Covers: creating new workbooks from scratch, reading and analyzing existing files, editing existing workbooks while preserving pivot tables \u002F VBA macros \u002F charts \u002F sparklines \u002F conditional formatting \u002F named ranges, formula recalculation and validation, visual review of results, and applying professional formatting. Triggers on 'spreadsheet', 'Excel', 'workbook', '表格', '工作簿', '.xlsx', '.xlsm', '.csv', 'pivot table', '透视表', 'macro', '宏', 'chart', '图表', 'financial model', '财务模型', 'formula', '公式', or any request to produce tabular data.","MIT","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M77Z0EVYYQEYGJME2K56STBZ","xlsx-formula-master","你描述需求(人话)，它给你 Excel \u002F WPS 公式 + 解释 + 不踩坑的边界条件。\n专攻 VLOOKUP \u002F XLOOKUP \u002F INDEX-MATCH \u002F SUMIFS \u002F 数组公式 \u002F 动态数组 \u002F Power Query 等高频但易错场景。\n自动适配你的 Excel 版本（2019 \u002F 365 \u002F WPS）——版本不同公式可能不能用。\n触发：用户说 \"Excel 公式\"、\"VLOOKUP\"、\"怎么算\"、\"WPS 公式\"、\"求和怎么写\"、\"匹配数据\"、\"数据透视\"。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx-formula-master\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx-formula-master\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M77Z05X53XF8VVQFFFZE2Z4Z","self-improving-agent","Self-improving agent system that analyzes conversation quality, identifies improvement opportunities, and continuously optimizes response strategies.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxiucheng-self-improving-agent\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M77YZ7KXV2B7GDCBKE07QRWE","xiaohongshu-content-tools","小红书运营数据工具｜当提到小红书关键词搜索,小红书笔记详情及评论,小红书博主作品时使用，可实现爆款挖掘\u002F竞品分析\u002FKOL筛选\u002F趋势洞察，用数据驱动小红书流量增长，告别盲目创作","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxiaohongshu-content-tools\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M77YYQVPA4EWZPQ8J88BYVYA","xfg-ddd-skills","DDD 六边形架构设计与部署技能包。提供 Domain\u002FCase\u002FInfrastructure 层设计模式与代码模板，以及 Docker 环境部署脚本。当用户询问 DDD 架构、设计模式或需要部署项目时调用。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxfg-ddd-skills\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M77YXP7QKKD0HX26W2V63Q9M","wordpress","WordPress.com API integration with managed OAuth. Manage posts, pages, sites, and content.\nUse this skill when users want to create, read, update, or delete WordPress.com posts, pages, or manage site content.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwordpress-api\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwordpress-api\u002FSKILL.md",[],[]]