You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MCPForUnity/UnityMcpServer~/src/server.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -168,8 +168,10 @@ def _emit_startup():
168
168
- `manage_gameobject`: Manages GameObjects in the scene.\n
169
169
- `manage_script`: Manages C# script files.\n
170
170
- `manage_asset`: Manages prefabs and assets.\n
171
-
- `manage_shader`: Manages shaders.\n\n
172
-
- Tips:\n
171
+
- `manage_shader`: Manages shaders.\n
172
+
- `reload_domain`: Triggers Unity domain reload to recompile scripts and refresh assemblies.\n\n
173
+
Tips:\n
174
+
- Always reload the domain after creating or modifying scripts before attempting to use them. Use `reload_domain` immediately after script changes, then check `read_console` for compile errors.\n
173
175
- Create prefabs for reusable GameObjects.\n
174
176
- Always include a camera and main light in your scenes.\n
175
177
- Unless specified otherwise, paths are relative to the project's `Assets/` folder.\n
description="Trigger a Unity domain reload to recompile scripts and refresh assemblies. Essential after creating or modifying scripts before new components can be used."
Copy file name to clipboardExpand all lines: Server/server.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -168,8 +168,10 @@ def _emit_startup():
168
168
- `manage_gameobject`: Manages GameObjects in the scene.\n
169
169
- `manage_script`: Manages C# script files.\n
170
170
- `manage_asset`: Manages prefabs and assets.\n
171
-
- `manage_shader`: Manages shaders.\n\n
172
-
- Tips:\n
171
+
- `manage_shader`: Manages shaders.\n
172
+
- `reload_domain`: Triggers Unity domain reload to recompile scripts and refresh assemblies.\n\n
173
+
Tips:\n
174
+
- Always reload the domain after creating or modifying scripts before attempting to use them. Use `reload_domain` immediately after script changes, then check `read_console` for compile errors.\n
173
175
- Create prefabs for reusable GameObjects.\n
174
176
- Always include a camera and main light in your scenes.\n
175
177
- Unless specified otherwise, paths are relative to the project's `Assets/` folder.\n
description="Trigger a Unity domain reload to recompile scripts and refresh assemblies. Essential after creating or modifying scripts before new components can be used."
0 commit comments