Merge branch 'feat/bridge-stability' of https://github.com/dsarno/unity-mcp into feat/bridge-stability
* 'feat/bridge-stability' of https://github.com/dsarno/unity-mcp: Bridge logs: add bold blue UNITY-MCP prefix; gate PortManager logs behind Debug Logs toggle; improve Python and UV detection on Windows (flex versions, where.exe/Path scan); tidy installer messagesmain
commit
32f513f10d
|
|
@ -128,7 +128,7 @@ namespace UnityMcpBridge.Editor
|
||||||
// Don't restart if already running on a working port
|
// Don't restart if already running on a working port
|
||||||
if (isRunning && listener != null)
|
if (isRunning && listener != null)
|
||||||
{
|
{
|
||||||
Debug.Log($"UnityMcpBridge already running on port {currentUnityPort}");
|
Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: UnityMcpBridge already running on port {currentUnityPort}");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -194,7 +194,7 @@ namespace UnityMcpBridge.Editor
|
||||||
|
|
||||||
isRunning = true;
|
isRunning = true;
|
||||||
isAutoConnectMode = false;
|
isAutoConnectMode = false;
|
||||||
Debug.Log($"UnityMcpBridge started on port {currentUnityPort}.");
|
Debug.Log($"<b><color=#2EA3FF>UNITY-MCP</color></b>: UnityMcpBridge started on port {currentUnityPort}.");
|
||||||
Task.Run(ListenerLoop);
|
Task.Run(ListenerLoop);
|
||||||
EditorApplication.update += ProcessCommands;
|
EditorApplication.update += ProcessCommands;
|
||||||
// Write initial heartbeat immediately
|
// Write initial heartbeat immediately
|
||||||
|
|
@ -226,7 +226,7 @@ namespace UnityMcpBridge.Editor
|
||||||
listener?.Stop();
|
listener?.Stop();
|
||||||
listener = null;
|
listener = null;
|
||||||
EditorApplication.update -= ProcessCommands;
|
EditorApplication.update -= ProcessCommands;
|
||||||
Debug.Log("UnityMcpBridge stopped.");
|
Debug.Log("<b><color=#2EA3FF>UNITY-MCP</color></b>: UnityMcpBridge stopped.");
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue