Comprehensive HTTP REST API for Unity Editor Control
A professional Unity Editor extension providing 205+ REST endpoints for complete Unity Editor automation and control from any HTTP client.
Unity API Communicator (UAC) transforms Unity Editor into a fully controllable HTTP service. Whether you're building AI integrations, automation scripts, CI/CD pipelines, or custom tools, this API provides programmatic access to every aspect of Unity Editor.
- 205+ REST Endpoints - Complete Unity Editor control
- Zero Configuration - Works out-of-the-box, auto-starts on Unity load
- Configurable - Easy settings via Inspector or Settings Window
- Universal Compatibility - Works with any HTTP client
- Real-time Control - Immediate response and execution
- Thread-Safe - Proper main thread execution for Unity operations
- Modular Architecture - 28 specialized routers, 29 handlers
- Visual Testing - Screenshot capture of Editor and Game views
- AI-Ready - Auto-discovery endpoints for AI agents
| Client | Use Case |
|---|---|
| AI Agents | Claude, ChatGPT, Copilot integration for automated scene generation |
| Python Scripts | Workflow automation, batch processing, procedural generation |
| CI/CD Pipelines | Jenkins, GitHub Actions for automated builds and testing |
| Web Applications | Custom dashboards, remote Unity control panels |
| External Tools | Integration with Blender, Maya, Figma |
| Automated Testing | E2E scene testing, visual regression testing |
| Custom Editors | Build your own Unity control interfaces |
- Open Window > Package Manager in Unity
- Click + > Add package from disk...
- Select
package.jsonfrom the UAC folder - Server starts automatically (default:
http://localhost:7777)
Open Tools > Unity API Communicator > Server Settings to configure:
| Setting | Default | Description |
|---|---|---|
| Host | localhost | Server address |
| Port | 7777 | Server port |
| Auto Start | true | Start on Unity load |
| Enable CORS | true | Allow browser requests |
| Log Requests | false | Debug logging |
curl http://localhost:7777/api/statuscurl -X POST http://localhost:7777/api/gameobject/create \
-H "Content-Type: application/json" \
-d '{"name": "MyCube", "type": "Cube"}'curl http://localhost:7777/api/discoverThis API is designed to work seamlessly with AI agents (Claude, ChatGPT, Copilot, etc.).
AI agents can discover all available endpoints programmatically:
# List all endpoints
curl http://localhost:7777/api/discover
# List categories
curl http://localhost:7777/api/categories
# Get help for specific endpoint
curl -X POST http://localhost:7777/api/help -d '{"path":"/api/gameobject/create"}'Server: http://localhost:7777
Discovery: GET /api/discover
Categories: GET /api/categories
Common endpoints:
- POST /api/gameobject/create - Create objects
- POST /api/terrain/create - Create terrain
- POST /api/scene/new - New scene
- GET /api/scene/list - List scenes
- POST /api/editor/play - Enter play mode
- Create, transform, clone, delete, find, components
- Create, delete, rename, move assets
- Colors, floats, textures, shaders, variants
- Create, instantiate, apply, unpack, list, variants
- Light, Camera, Physics (Rigidbody, Colliders), Audio
- Animators, controllers, states, clips
- Canvas, UI elements
- Create, configure, play, stop
- NavMesh agents, obstacles, baking
- Create, heightmaps, layers, trees, grass, foliage
- Create, save, open, close, list
- Play/Stop, refresh, recompile, screenshot
- Auto-discover endpoints, categories, help
- Build, Scripts, Console, Selection, Undo, SceneView, Hierarchy, Render, Tags & Layers, Project Settings, Search, Import Settings, Packages, Profiler, Execute
- 205+ endpoints (including discovery)
- 28 routers
- 29 handlers
- ~15,000 lines of code
- 30+ domains covered
By default, the server only accepts connections from localhost. To allow remote access, change the Host setting to * in Server Settings.
Ready-to-use client examples are included in Samples/:
- Python -
unity_client.py - Node.js -
unity_client.js - PowerShell -
unity_client.ps1 - Bash -
unity_client.sh - C# .NET -
UnityClient.cs
Commercial License - See LICENSE.md
See Documentation for complete API reference.