Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
tomleelive avatar

Unity Plugin

  • 1 installs
  • 106 repo stars
  • Updated July 8, 2026
  • tomleelive/openclaw-unity-plugin

Let coding agents drive the Unity Editor via 44 structured tools for scenes, GameObjects, console logs, and play mode while you build a game.

About

Unity Plugin is an agent skill that documents the complete parameter reference for the OpenClaw Unity plugin’s 44 editor tools. game developers install it when they want Claude Code, Cursor, or similar agents to operate Unity predictably—querying console errors, inspecting scene hierarchies, loading scenes, and creating or finding GameObjects—without guessing JSON field names. The readme groups capabilities into console, scene, and GameObject families with copy-paste request examples, which matters because agent failures in Unity usually come from malformed tool payloads rather than missing C# knowledge. It is a phase-specific Build skill aimed at agent-tooling, not a gameplay systems tutorial. Pair it with your game design docs and coding skills; use it whenever the agent must act inside the Editor during integration and iteration on a Unity title.

  • Reference for all 44 Unity plugin tools with JSON parameter shapes
  • Console tools: getLogs, clear with optional type filters
  • Scene tools: list, getActive, getData hierarchy, load additive or single
  • GameObject tools: find by name/tag/component, create with primitives
  • Designed for OpenClaw Unity plugin workflows alongside editor automation

Unity Plugin by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #218 of 247 Game Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/tomleelive/openclaw-unity-plugin --skill unity-plugin

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars106
Last updatedJuly 8, 2026
Repositorytomleelive/openclaw-unity-plugin

What it does

Let coding agents drive the Unity Editor via 44 structured tools for scenes, GameObjects, console logs, and play mode while you build a game.

Files

SKILL.mdMarkdownGitHub ↗

Unity Plugin Skill

Control Unity Editor through 44 built-in tools. Works in both Editor and Play mode.

Quick Reference

Core Tools

CategoryKey Tools
Scenescene.getActive, scene.getData, scene.load
GameObjectgameobject.find, gameobject.create, gameobject.destroy
Componentcomponent.get, component.set, component.add
Debugdebug.hierarchy, debug.screenshot, console.getLogs
Inputinput.clickUI, input.type, input.keyPress
Editorapp.play, app.getState, editor.refresh

Common Workflows

1. Scene Inspection

unity_execute: debug.hierarchy {depth: 2}
unity_execute: scene.getActive

2. Find & Modify Objects

unity_execute: gameobject.find {name: "Player"}
unity_execute: component.get {objectName: "Player", componentType: "Transform"}
unity_execute: transform.setPosition {objectName: "Player", x: 0, y: 5, z: 0}

3. UI Testing

unity_execute: input.clickUI {name: "PlayButton"}
unity_execute: input.type {text: "TestUser", elementName: "UsernameInput"}
unity_execute: debug.screenshot

4. Play Mode Control

unity_execute: app.play {state: true}   # Enter Play mode
unity_execute: app.play {state: false}  # Exit Play mode
unity_execute: app.getState             # Check current state

5. Force Recompile

unity_execute: editor.refresh           # Refresh assets & recompile
unity_execute: editor.recompile         # Request recompilation only

Tool Categories

Console (2 tools)

  • console.getLogs - Get logs with optional type filter (Log/Warning/Error)
  • console.clear - Clear captured logs

Scene (4 tools)

  • scene.list - List scenes in build settings
  • scene.getActive - Get active scene info
  • scene.getData - Get full hierarchy data
  • scene.load - Load scene by name

GameObject (6 tools)

  • gameobject.find - Find by name, tag, or component
  • gameobject.create - Create object or primitive (Cube, Sphere, etc.)
  • gameobject.destroy - Destroy object
  • gameobject.getData - Get detailed data
  • gameobject.setActive - Enable/disable
  • gameobject.setParent - Change hierarchy

Transform (3 tools)

  • transform.setPosition - Set world position {x, y, z}
  • transform.setRotation - Set Euler rotation
  • transform.setScale - Set local scale

Component (5 tools)

  • component.add - Add component by type name
  • component.remove - Remove component
  • component.get - Get component data/properties
  • component.set - Set field/property value
  • component.list - List available component types

Script (3 tools)

  • script.execute - Execute simple command
  • script.read - Read script file
  • script.list - List project scripts

Application (3 tools)

  • app.getState - Get play mode, FPS, time
  • app.play - Enter/exit Play mode
  • app.pause - Toggle pause

Debug (3 tools)

  • debug.log - Write to console
  • debug.screenshot - Capture screenshot
  • debug.hierarchy - Text hierarchy view

Editor (4 tools)

  • editor.refresh - Refresh AssetDatabase (triggers recompile)
  • editor.recompile - Request script recompilation
  • editor.focusWindow - Focus window (game/scene/console/hierarchy/project/inspector)
  • editor.listWindows - List open windows

Input Simulation (10 tools)

  • input.keyPress - Press and release key
  • input.keyDown / input.keyUp - Hold/release key
  • input.type - Type text into field
  • input.mouseMove - Move cursor
  • input.mouseClick - Click at position
  • input.mouseDrag - Drag operation
  • input.mouseScroll - Scroll wheel
  • input.getMousePosition - Get cursor position
  • input.clickUI - Click UI element by name

Tips

Screenshot Modes

  • Play mode: ScreenCapture - includes all UI overlays
  • Editor mode: Camera.main.Render() - no overlay UI
  • Use {method: "camera"} for camera-only capture

Finding Objects

gameobject.find {name: "Player"}           # By exact name
gameobject.find {tag: "Enemy"}             # By tag
gameobject.find {componentType: "Camera"}  # By component

Script Recompilation

Unity may not auto-recompile after code changes. Use:

editor.refresh    # Full asset refresh + recompile

Play Mode Transitions

  • Plugin survives Play mode transitions via SessionState
  • If connection lost, wait for auto-reconnect or use Window > OpenClaw Plugin > Force Reconnect

Troubleshooting

IssueSolution
Tool timeoutCheck Unity is responding, try app.getState
No connectionVerify openclaw unity status, check gateway
Scripts not updatingUse editor.refresh to force recompile
Wrong screenshotUse Play mode for game view with UI

Related skills

Game Developmentintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.