File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,17 @@ MCP Unityサーバーをデバッグするには、以下の方法を使用で
244244- メニュー項目が確認を必要とするかどうかを確認
245245- メニュー項目が現在のコンテキストで利用可能であることを確認
246246
247+ #### Play Modeテスト実行時に ` Connection failed ` エラー
248+
249+ ` run_tests ` ツールの実行が次のエラーを返します:
250+ ```
251+ Error:
252+ Connection failed: Unknown error
253+ ```
254+
255+ このエラーは、Play Modeに切り替わる際にドメインがリロードされるため、ブリッジ接続が失われることで発生します。
256+ 回避方法は、** Edit > Project Settings > Editor > "Enter Play Mode Settings"** で ** Reload Domain** をオフにすることです。
257+
247258## 貢献
248259
249260貢献は大歓迎です!詳細については[ 貢献ガイド] ( CONTRIBUTING.md ) をお読みください。
Original file line number Diff line number Diff line change @@ -327,6 +327,19 @@ Don't forget to shutdown the server with `Ctrl + C` before closing the terminal
327327- Verify that the menu item is available in the current context
328328</details >
329329
330+ <details >
331+ <summary ><span style =" font-size : 1.1em ; font-weight : bold ;" >Connection failed when running Play Mode tests</span ></summary >
332+
333+ The ` run_tests ` tool returns the following response:
334+ ```
335+ Error:
336+ Connection failed: Unknown error
337+ ```
338+
339+ This error occurs because the bridge connection is lost when the domain reloads upon switching to Play Mode.
340+ The workaround is to turn off ** Reload Domain** in ** Edit > Project Settings > Editor > "Enter Play Mode Settings"** .
341+ </details >
342+
330343## Support & Feedback
331344
332345If you have any questions or need support, please open an [ issue] ( https://github.com/CoderGamester/mcp-unity/issues ) on this repository.
Original file line number Diff line number Diff line change @@ -246,6 +246,17 @@ MCP Unity 通过将 Unity `Library/PackedCache` 文件夹添加到您的工作
246246- 检查菜单项是否需要确认
247247- 验证菜单项在当前上下文中是否可用
248248
249+ #### 运行播放模式测试时连接失败
250+
251+ ` run_tests ` 工具返回以下响应:
252+ ```
253+ Error:
254+ Connection failed: Unknown error
255+ ```
256+
257+ 发生此错误的原因是在切换到播放模式触发域重新加载时,桥接连接会丢失。
258+ 解决方法是在 ** Edit > Project Settings > Editor > "Enter Play Mode Settings"** 中关闭 ** Reload Domain** 。
259+
249260## 贡献
250261
251262欢迎贡献!请阅读我们的[ 贡献指南] ( CONTRIBUTING.md ) 以获取更多信息。
You can’t perform that action at this time.
0 commit comments