unity-editor-toolkit

118
9
Source

Automate and control Unity Editor with 500+ commands, real-time WebSocket communication, and SQLite integration for efficient game development.

Install

mkdir -p .claude/skills/unity-editor-toolkit && curl -L -o skill.zip "https://mcp.directory/api/skills/download/228" && unzip -o skill.zip -d .claude/skills/unity-editor-toolkit && rm skill.zip

Installs to .claude/skills/unity-editor-toolkit

About this skill

Purpose

Unity Editor Toolkit enables comprehensive Unity Editor automation and control from Claude Code. It provides:

  • Extensive Command Coverage: 500+ commands spanning 25 Unity Editor categories
  • Real-time Communication: Instant bidirectional WebSocket connection (JSON-RPC 2.0)
  • SQLite Database Integration: Real-time GameObject synchronization with GUID-based persistence
    • GUID-based Identification: Persistent GameObject tracking across Unity sessions
    • Multi-scene Support: Synchronize all loaded scenes simultaneously (1s interval)
    • Command Pattern: Undo/Redo support for database operations
    • Auto Migration: Automatic schema migration system
    • Batch Operations: Efficient bulk inserts, updates, and deletes (500 objects/batch)
  • Menu Execution: Run Unity Editor menu items programmatically (Window, Assets, Edit, GameObject menus)
  • ScriptableObject Management: Complete CRUD operations with array/list support and all field types
    • Array/List Operations: Add, remove, get, clear elements with nested access (items[0].name)
    • All Field Types: Integer, Float, String, Boolean, Vector*, Color, Quaternion, Bounds, AnimationCurve, ObjectReference, and more
    • Nested Property Traversal: Access deeply nested fields with dot notation and array indices
  • Deep Editor Integration: GameObject/hierarchy, transforms, components, scenes, materials, prefabs, animation, physics, lighting, build pipeline, and more
  • Security First: Multi-layer defense against injection attacks (SQL, command, JSON, path traversal) and unauthorized access
  • Production Ready: Cross-platform support with robust error handling and logging

Always run scripts with --help first to see usage. DO NOT read the source until you try running the script first and find that a customized solution is abslutely necessary. These scripts can be very large and thus pollute your context window. They exist to be called directly as black-box scripts rather than ingested into your context window.


📚 문서 우선 원칙 (필수)

⚠️ CRITICAL: Unity Editor Toolkit skill을 사용할 때는 반드시 다음 순서를 따르세요:

1️⃣ Reference 문서 확인 (필수)

명령어를 사용하기 전에 반드시 skills/references/ 폴더의 해당 문서를 읽으세요:

2️⃣ --help 실행

# 모든 명령어 확인
cd <unity-project-root> && node .unity-websocket/uw --help

# 특정 명령어의 옵션 확인
cd <unity-project-root> && node .unity-websocket/uw <command> --help

3️⃣ 예제 실행

reference 문서의 Examples 섹션을 참고하여 명령어를 실행하세요.

4️⃣ 소스 코드 읽기 (최후의 수단)

  • reference 문서와 --help만으로는 해결 안 될 때만 소스 코드를 읽으세요
  • 소스 코드는 컨텍스트 윈도우를 많이 차지하므로 가능하면 피하세요

이 순서를 무시하면:

  • ❌ 명령어 사용법을 잘못 이해할 수 있음
  • ❌ 옵션을 놓쳐서 원하지 않는 결과가 나올 수 있음
  • ❌ 컨텍스트 윈도우를 낭비할 수 있음

When to Use

Use Unity Editor Toolkit when you need to:

  1. Automate Unity Editor Tasks

    • Create and manipulate GameObjects, components, and hierarchies
    • Configure scenes, materials, and rendering settings
    • Control animation, physics, and particle systems
    • Manage assets, prefabs, and build pipelines
  2. Real-time Unity Testing

    • Monitor console logs and errors during development
    • Query GameObject states and component properties
    • Test scene configurations and gameplay logic
    • Debug rendering, physics, or animation issues
  3. Batch Operations

    • Create multiple GameObjects with specific configurations
    • Apply material/shader changes across multiple objects
    • Setup scene hierarchies from specifications
    • Automate repetitive Editor tasks
  4. Menu and Editor Automation

    • Execute Unity Editor menu items programmatically (menu run "Window/General/Console")
    • Open editor windows and tools via command line
    • Automate asset refresh, reimport, and build operations
    • Query available menu items with wildcard filtering
  5. ScriptableObject Management

    • Create and configure ScriptableObject assets programmatically
    • Read and modify all field types (Vector, Color, Quaternion, AnimationCurve, etc.)
    • Manipulate arrays/lists with full CRUD operations
    • Access nested properties with array index notation (items[0].stats.health)
    • Query ScriptableObject types and inspect asset metadata
  6. Database-Driven Workflows

    • Persistent GameObject tracking across Unity sessions with GUID-based identification
    • Real-time synchronization of all loaded scenes to SQLite database
    • Analytics and querying of GameObject hierarchies and properties
    • Undo/Redo support for database operations via Command Pattern
    • Efficient batch operations (500 objects/batch) for large scene management
  7. CI/CD Integration

    • Automated builds with platform-specific settings
    • Test Runner integration for unit/integration tests
    • Asset validation and integrity checks
    • Build pipeline automation

Prerequisites

Unity Project Setup

  1. Install Unity Editor Toolkit Server Package

    • Via Unity Package Manager (Git URL or local path)
    • Requires Unity 2020.3 or higher
    • Package location: skills/assets/unity-package
  2. Configure WebSocket Server

    • Open Unity menu: Tools > Unity Editor Toolkit > Server Window
    • Plugin scripts path auto-detected from ~/.claude/plugins/...
    • Click "Install CLI" to build WebSocket server (one-time setup)
    • Server starts automatically when Unity Editor opens
  3. Database Setup (Optional)

    • In the Server window, switch to "Database" tab
    • Click "Connect" to initialize SQLite database
    • Database file location: {ProjectRoot}/.unity-websocket/unity-editor.db
    • Click "Start Sync" to enable real-time GameObject synchronization (1s interval)
    • GUID Components: GameObjects are automatically tagged with persistent GUIDs
    • Multi-scene: All loaded scenes are synchronized automatically
    • Analytics: View sync stats, database health, and Undo/Redo history
  4. Server Status

    • Port: Auto-assigned from range 9500-9600
    • Status file: {ProjectRoot}/.unity-websocket/server-status.json
    • CLI automatically detects correct port from this file
  5. Dependencies

    • websocket-sharp (install via package installation scripts)
    • Newtonsoft.Json (Unity's built-in version)
    • Cysharp.UniTask (for async/await database operations)
    • SQLite-net (embedded SQLite database)

Claude Code Plugin

The Unity Editor Toolkit plugin provides CLI commands for Unity Editor control.

Core Workflow

1. Connection

Unity Editor Toolkit CLI automatically:

  • Detects Unity project via .unity-websocket/server-status.json
  • Reads port information from status file (9500-9600 range)
  • Connects to WebSocket server if Unity Editor is running

2. Execute Commands

⚠️ Before executing ANY command, check the reference documentation for your command category (see "📚 문서 우선 원칙" section above).

Unity Editor Toolkit provides 86+ commands across 15 categories. All commands run from the Unity project root:

cd <unity-project-root> && node .unity-websocket/uw <command> [options]

Available Categories (Implemented):

#CategoryCommandsReference
1Connection & Status1COMMANDS_CONNECTION_STATUS.md
2GameObject & Hierarchy8COMMANDS_GAMEOBJECT_HIERARCHY.md
3Transform4COMMANDS_TRANSFORM.md
4Component10COMMANDS_COMPONENT.md
5Scene Management7COMMANDS_SCENE.md
6Asset Database & Editor3COMMANDS_EDITOR.md
7Console & Logging2COMMANDS_CONSOLE.md
8EditorPrefs Management6COMMANDS_PREFS.md
9Wait Commands4COMMANDS_WAIT.md
10Chain Commands2COMMANDS_CHAIN.md
11Menu Execution2COMMANDS_MENU.md
12Asset Management9COMMANDS_ASSET.md
13Prefab12COMMANDS_PREFAB.md
14Material9COMMANDS_MATERIAL.md
15Shader7COMMANDS_SHADER.md

Usage:

cd <unity-project-root> && node .unity-websocket/uw <command> [options]

Required: Check Documentation

# 1. 먼저 명령어 카테고리의 reference 문서를 읽으세요
# 예: Component 명령어 사용 → skills/references/COMMANDS_COMPONENT.md 읽기

# 2. --help로 명령어 옵션 확인
cd <unity-project-root> && node .unity-websocket/uw --help
cd <unity-project-root> && node .unity-websocket/uw <command> --help

# 3. reference 문서의 예제를 참고하여 실행

📖 Complete Documentation by Category

Required Reading: Before using any command, read the Category-specific reference document:

  • 🔴 MUST READ FIRST - COMMANDS.md - Overview and command ro

Content truncated.

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,5711,369

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

1,1161,191

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

1,4181,109

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,194747

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

1,154684

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

1,312614

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.