# Unity Editor Toolkit - Command Reference Unity Editor를 제어할 수 있는 500+ 명령어 로드맵입니다. **Current Status**: Phase 2 - 42 commands implemented ## Quick Reference ```bash # Basic usage cd && node .unity-websocket/uw [options] # Show all available commands cd && node .unity-websocket/uw --help # Show help for specific command cd && node .unity-websocket/uw --help ``` ## 📖 Documentation by Category ### ✅ Implemented (Phase 1+) | Category | Commands | Documentation | |----------|----------|---------------| | **Connection & Status** | 1 command | [COMMANDS_CONNECTION_STATUS.md](./COMMANDS_CONNECTION_STATUS.md) | | **GameObject & Hierarchy** | 8 commands | [COMMANDS_GAMEOBJECT_HIERARCHY.md](./COMMANDS_GAMEOBJECT_HIERARCHY.md) | | **Transform** | 4 commands | [COMMANDS_TRANSFORM.md](./COMMANDS_TRANSFORM.md) | | **Component** | 10 commands | [COMMANDS_COMPONENT.md](./COMMANDS_COMPONENT.md) | | **Scene Management** | 7 commands | [COMMANDS_SCENE.md](./COMMANDS_SCENE.md) | | **Asset Database & Editor** | 3 commands | [COMMANDS_EDITOR.md](./COMMANDS_EDITOR.md) | | **Console & Logging** | 2 commands | [COMMANDS_CONSOLE.md](./COMMANDS_CONSOLE.md) | | **EditorPrefs Management** | 6 commands | [COMMANDS_PREFS.md](./COMMANDS_PREFS.md) | | **Wait Commands** | 4 commands | [COMMANDS_WAIT.md](./COMMANDS_WAIT.md) | | **Chain Commands** | 2 commands | [COMMANDS_CHAIN.md](./COMMANDS_CHAIN.md) | | **Menu Execution** | 2 commands | [COMMANDS_MENU.md](./COMMANDS_MENU.md) | | **Asset Management (ScriptableObject)** | 9 commands | [COMMANDS_ASSET.md](./COMMANDS_ASSET.md) | | **Prefab** | 12 commands | [COMMANDS_PREFAB.md](./COMMANDS_PREFAB.md) | ### 🔄 Coming Soon (Phase 2+) | Category | Status | |----------|--------| | **Material & Rendering** | 🔄 25+ commands planned | | **Animation** | 🔄 20+ commands planned | | **Physics** | 🔄 20+ commands planned | | **Lighting** | 🔄 15+ commands planned | | **Camera** | 🔄 15+ commands planned | | **Audio** | 🔄 15+ commands planned | | **Navigation & AI** | 🔄 15+ commands planned | | **Particle System** | 🔄 15+ commands planned | | **Timeline** | 🔄 10+ commands planned | | **Build & Player** | 🔄 15+ commands planned | | **Project Settings** | 🔄 20+ commands planned | | **Package Manager** | 🔄 10+ commands planned | | **Version Control** | 🔄 10+ commands planned | | **Profiler & Performance** | 🔄 15+ commands planned | | **Test Runner** | 🔄 10+ commands planned | | **Input System** | 🔄 10+ commands planned | | **UI Toolkit** | 🔄 10+ commands planned | | **Editor Window & UI** | 🔄 10+ commands planned | | **Utility Commands** | 🔄 20+ commands planned | --- ## Quick Command Examples ### Connection & Status ```bash cd && node .unity-websocket/uw status [--port ] [--json] ``` ### GameObject & Hierarchy ```bash # Find GameObject by name or path cd && node .unity-websocket/uw go find [--json] # Create GameObject cd && node .unity-websocket/uw go create [--parent ] [--json] # Destroy GameObject cd && node .unity-websocket/uw go destroy [--json] # Set active state cd && node .unity-websocket/uw go set-active [--json] # Set/remove parent cd && node .unity-websocket/uw go set-parent [parent] [--json] # Get parent info cd && node .unity-websocket/uw go get-parent [--json] # Get children cd && node .unity-websocket/uw go get-children [--recursive] [--json] # View hierarchy tree cd && node .unity-websocket/uw hierarchy [--root-only] [--include-inactive] [--json] ``` ### Transform ```bash # Get transform information cd && node .unity-websocket/uw tf get [--json] # Set position (x,y,z) cd && node .unity-websocket/uw tf set-position [--json] # Set rotation (Euler angles in degrees) cd && node .unity-websocket/uw tf set-rotation [--json] # Set scale cd && node .unity-websocket/uw tf set-scale [--json] ``` ### Component Management ```bash # List components on GameObject cd && node .unity-websocket/uw comp list [--include-disabled] [--json] # Add component to GameObject cd && node .unity-websocket/uw comp add [--json] # Remove component from GameObject cd && node .unity-websocket/uw comp remove [--json] # Enable/Disable component cd && node .unity-websocket/uw comp enable [--json] cd && node .unity-websocket/uw comp disable [--json] # Get component properties cd && node .unity-websocket/uw comp get [property] [--json] # Set component property cd && node .unity-websocket/uw comp set [--json] # Inspect component (show all properties) cd && node .unity-websocket/uw comp inspect [--json] # Move component order cd && node .unity-websocket/uw comp move-up [--json] cd && node .unity-websocket/uw comp move-down [--json] # Copy component between GameObjects cd && node .unity-websocket/uw comp copy [--json] ``` ### Scene Management ```bash # Get current scene info cd && node .unity-websocket/uw scene current [--json] # List all loaded scenes cd && node .unity-websocket/uw scene list [--json] # Load scene cd && node .unity-websocket/uw scene load [--additive] [--json] # Create new scene cd && node .unity-websocket/uw scene new [--empty] [--additive] [--json] # Save scene cd && node .unity-websocket/uw scene save [path] [--scene ] [--json] # Unload scene cd && node .unity-websocket/uw scene unload [--remove] [--json] # Set active scene (multi-scene editing) cd && node .unity-websocket/uw scene set-active [--json] ``` ### Asset Database & Editor ```bash # Refresh AssetDatabase cd && node .unity-websocket/uw editor refresh [--json] # Recompile scripts cd && node .unity-websocket/uw editor recompile [--json] # Reimport assets cd && node .unity-websocket/uw editor reimport [--json] ``` ### Console & Logging ```bash # Get console logs cd && node .unity-websocket/uw console logs [--count ] [--errors-only] [--warnings] [--json] # Clear console cd && node .unity-websocket/uw console clear [--json] ``` ### EditorPrefs Management ```bash # Get EditorPrefs value cd && node .unity-websocket/uw prefs get [-t ] [-d ] [--json] # Set EditorPrefs value cd && node .unity-websocket/uw prefs set [-t ] [--json] # Delete EditorPrefs key cd && node .unity-websocket/uw prefs delete [--json] # Check if key exists cd && node .unity-websocket/uw prefs has [--json] # Delete all EditorPrefs keys cd && node .unity-websocket/uw prefs delete-all [--json] # List all EditorPrefs keys cd && node .unity-websocket/uw prefs list [--json] ``` ### Wait Commands ```bash # Wait for compilation to complete cd && node .unity-websocket/uw wait compile [--timeout ] [--json] # Wait for play mode changes cd && node .unity-websocket/uw wait playmode [--timeout ] [--json] # Sleep for duration cd && node .unity-websocket/uw wait sleep [--timeout ] [--json] # Wait for scene to finish loading (play mode only) cd && node .unity-websocket/uw wait scene [--timeout ] [--json] ``` ### Chain Commands ```bash # Execute commands from JSON file cd && node .unity-websocket/uw chain execute [--continue-on-error] [--timeout ] [--json] # Execute commands inline cd && node .unity-websocket/uw chain exec [--continue-on-error] [--timeout ] [--json] # Example: inline commands with parameters cd && node .unity-websocket/uw chain exec \ "GameObject.Create:name=Player" \ "GameObject.SetActive:instanceId=123,active=true" \ --continue-on-error ``` ### Prefab Management ```bash # Instantiate prefab cd && node .unity-websocket/uw prefab instantiate [--name ] [--position ] [--json] # Create prefab from scene object cd && node .unity-websocket/uw prefab create [--overwrite] [--json] # Unpack prefab instance cd && node .unity-websocket/uw prefab unpack [--completely] [--json] # Apply/Revert prefab overrides cd && node .unity-websocket/uw prefab apply [--json] cd && node .unity-websocket/uw prefab revert [--json] # Create prefab variant cd && node .unity-websocket/uw prefab variant [--json] # Get prefab overrides cd && node .unity-websocket/uw prefab overrides [--json] # Get source prefab info cd && node .unity-websocket/uw prefab source [--json] # Check if prefab instance cd && node .unity-websocket/uw prefab is-instance [--json] # Open/Close prefab edit mode cd && node .unity-websocket/uw prefab open [--json] cd && node .unity-websocket/uw prefab close [--json] # List prefabs in folder cd && node .unity-websocket/uw prefab list [--path ] [--json] ``` --- ## Development Roadmap ### Phase 1 (Current) - Core Foundation ✅ - **30 commands** across 8 categories - GameObject manipulation, Transform control, Scene management - Console logging, Editor utilities, EditorPrefs - Wait conditions, Command chaining ### Phase 2 - Component & Material System 🔄 - **~140+ commands** - Component management (Add, Remove, Configure) - Material system (Colors, Textures, Shaders) - Prefab system (Instantiate, Create, Override) - Asset Database (Search, Import, Dependencies) ### Phase 3 - Animation & Physics 🔄 - **~170+ commands** - Animation system (Animator, Curves, Events) - Physics system (Rigidbody, Collider, Raycast) - Lighting system (Lights, Lightmaps, Probes) - Camera system (FOV, Viewport, Screenshots) ### Phase 4 - Advanced Features 🔄 - **~100+ commands** - Audio system (AudioSource, Mixer, 3D Audio) - Navigation & AI (NavMesh, Agents, Obstacles) - Particle system (Emission, Modules, Simulation) - Timeline (Playable Director, Tracks, Clips) ### Phase 5 - Build & Tools 🔄 - **~100+ commands** - Build pipeline (Build, Player Settings, Platforms) - Project Settings (Quality, Physics, Input, Graphics) - Package Manager (Install, Update, Remove) - Version Control (Git, Plastic SCM) - Profiler & Performance (CPU, GPU, Memory) - Test Runner (Unit Tests, Code Coverage) - Input System (Actions, Bindings, Devices) - UI Toolkit (Visual Elements, USS, UXML) --- **Total Roadmap**: 500+ commands across 25 categories For detailed command documentation with all options and examples, see the category-specific documentation files linked above.