About Openclaw Unity Plugin
Openclaw Unity Plugin is an MCP server published by TomLeeLive in the Gaming category: 55 MCP tools to drive the Unity Editor from any MCP-compatible AI agent — scenes, GameObjects, prefabs, assets, tests, and builds. OpenClaw gateway included for remote and chat access. Conduid read 98 tools from its source: app.getState, app.pause, app.play, app.stop, asset.copy, asset.delete and 92 more. No package is published for it, so it installs from a source checkout.
The repository has 107 stars and 7 forks, is licensed Apache-2.0, and its last commit was on 8 Sep 2026. The latest release is v1.6.2 (8 Jul 2026): Malformed heartbeat JSON on comma-decimal locales (pl-PL, de-DE, tr-TR, ...): numbers are now serialized with CultureInfo.InvariantCulture. It is the only release Conduid has on record for this repository. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Tests present. Its topics include editor-plugin, game-development, gamedev, openclaw, unity and unity-editor.
Install
git clone https://github.com/TomLeeLive/openclaw-unity-pluginTools (98)
app.getStateGet play mode, FPS, etc.app.pauseToggle pause (Editor)app.playEnter play mode (Editor)app.stopExit play mode (Editor)asset.copyCopy asset to new pathasset.deleteDelete asset (with trash option)asset.findSearch assets by query, type, folderasset.getPathGet asset path by nameasset.importImport/reimport specific assetasset.moveMove/rename assetasset.refreshRefresh AssetDatabasebatch.executeExecute multiple tools in one call (10-100x performance)| Parameter | Type | Description |
|---|---|---|
| commands | array | |
| stopOnError | boolean |
component.addAdd component to objectcomponent.getGet component datacomponent.listList available typescomponent.removeRemove componentcomponent.setSet field/property valueconsole.clearClear captured logsconsole.getErrorsGet error/exception logs (with optional warnings)console.getLogsGet Unity console logs (with type filter)debug.hierarchyText hierarchy view| Parameter | Type | Description |
|---|---|---|
| depth | number |
debug.logWrite to consoledebug.screenshotCapture screenshot (with UI)editor.domainReloadForce domain reload (reinitializes static fields)editor.focusWindowFocus Editor window (game/scene/console/hierarchy/project/inspector)editor.listWindowsList all open Editor windowseditor.playEnter Play modeeditor.recompileRequest script recompilationeditor.refreshRefresh AssetDatabase (triggers recompile)editor.stopExit Play modegameobject.createCreate GameObject or primitive| Parameter | Type | Description |
|---|---|---|
| name | string | |
| primitive | string |
gameobject.deleteDelete a GameObject (alias for destroy)gameobject.destroyDestroy a GameObjectgameobject.findFind by name, tag, or component type| Parameter | Type | Description |
|---|---|---|
| name | string |
gameobject.getAllGet all GameObjects with filteringgameobject.getDataGet detailed object datagameobject.setActiveEnable/disable objectgameobject.setParentChange parentinput.clickUIClick UI element by nameinput.getMousePositionGet current cursor positioninput.keyDownPress and hold a keyinput.keyPressPress and release a keyinput.keyUpRelease a keyinput.mouseClickClick at positioninput.mouseDragDrag from A to Binput.mouseMoveMove mouse cursorinput.mouseScrollScroll wheelinput.typeType text into input fieldmaterial.assignAssign material to GameObjectmaterial.createCreate material with shader, color, metallic, smoothnessmaterial.getInfoGet detailed material info with all shader propertiesmaterial.listList materials in project with filteringmaterial.modifyModify material properties (color, metallic, emission, etc.)package.addInstall package by name or git URLpackage.listList installed packagespackage.removeRemove installed packagepackage.searchSearch Unity package registryprefab.closeClose prefab editing modeprefab.createCreate prefab from scene GameObjectprefab.instantiateInstantiate prefab in scene with positionprefab.openOpen prefab for editingprefab.saveSave currently edited prefabscene.getActiveGet active scene infoscene.getDataGet scene hierarchy data| Parameter | Type | Description |
|---|---|---|
| depth | number |
scene.listList all scenes in build settingsscene.loadLoad a scene by name (Play mode)scene.openOpen a scene in Editor modescene.saveSave active scene (Editor mode)scene.saveAllSave all open scenes (Editor mode)script.executeExecute code/methods (Debug.Log, Time.timeScale, PlayerPrefs, reflection calls)script.listList script files in projectscript.readRead script file contentsscriptableobject.createCreate new ScriptableObject assetscriptableobject.getFieldGet specific field valuescriptableobject.listList ScriptableObjects in projectscriptableobject.loadLoad and inspect ScriptableObject fieldsscriptableobject.saveSave ScriptableObject changesscriptableobject.setFieldSet field value with auto-savesession.getInfoGet session info (project, processId, machineNa) for multi-instance supportshader.getInfoGet shader properties and infoshader.getKeywordsGet shader keywordsshader.listList shaders in projecttest.getResultsGet last test run resultstest.listList available teststest.runRun EditMode/PlayMode tests with filteringtexture.createCreate new texture with color filltexture.getInfoGet texture info (size, format, import settings)texture.listList textures in projecttexture.resizeResize texture via import settingstexture.setPixelsFill region with colortransform.getPositionGet world position (x, y, z)transform.getRotationGet rotation in Euler anglestransform.getScaleGet local scaletransform.setPositionSet world position| Parameter | Type | Description |
|---|---|---|
| name | string | |
| x | number | |
| y | number | |
| z | number |
transform.setRotationSet rotation (Euler)transform.setScaleSet local scaleunity_executeExecute a tool in the connected Unity Editor. Available tools: console.getLogs, scene.getData, gameobject.find, gameobject.create, gameobject.delete, gameobject.setActive, transform.setPosition, transform.setRotation, transform.setScale, component.get, component.add, debug.hierarchy, debug.screenshot, app.getState, app.play, app.stop, input.simulateKey, input.simulateMouse, and more. Read-only built-in tools (get*/list/find/read/debug.hierarchy/debug.screenshot) run directly. Project-changing tools — and every project-registered custom tool, whatever its name reads like — are refused unless the gateway was started with OPENCLAW_EDITOR_ALLOW_DESTRUCTIVE=1 and the call passes confirm: true after the user approved the change; dryRun: true previews any call without sending it.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Required for project-changing tools (create/delete/save/set*, package.add, script.execute, input.*, editor.play) and for every custom tool that has not been declared read-only. Set it only after the user has approved that specific change. Read-only tools ignore it. |
| dryRun | boolean | Preview only: report how the call is classified and what would be sent to the Editor, without sending it. |
| parameters | object | Parameters for the tool (varies by tool) |
| sessionId | string | Which connected Editor to drive. Required when more than one is connected. |
| tool * | string | The Unity tool to execute (e.g., 'debug.hierarchy', 'gameobject.find') |
unity_sessionsList all connected Unity Editor sessionsSecurity checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.2K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by MCP~/package-lock.json.
- ✓No dynamic code executionScanned 14 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdioMCP~/index.js:15
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 3 callsMCP~/index.js:78, MCP~/index.js:260, Runtime/OpenClawConnectionManager.cs:105
- Writes or deletes files
- 9 callsRuntime/OpenClawBridgeAuth.cs:173, Runtime/OpenClawBridgeAuth.cs:176, Runtime/OpenClawTools.cs:1445
- Lockfile
- MCP~/package-lock.json
Pattern matches on the source text of 14 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.2K words, fetched a month ago. The original in the repository is authoritative.
Read full README