升级XR插件版本
This commit is contained in:
21
Packages/MCPForUnity/Editor/McpCiBoot.cs
Normal file
21
Packages/MCPForUnity/Editor/McpCiBoot.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using MCPForUnity.Editor.Constants;
|
||||
using MCPForUnity.Editor.Services.Transport.Transports;
|
||||
using UnityEditor;
|
||||
|
||||
namespace MCPForUnity.Editor
|
||||
{
|
||||
public static class McpCiBoot
|
||||
{
|
||||
public static void StartStdioForCi()
|
||||
{
|
||||
try
|
||||
{
|
||||
EditorPrefs.SetBool(EditorPrefKeys.UseHttpTransport, false);
|
||||
}
|
||||
catch { /* ignore */ }
|
||||
|
||||
StdioBridgeHost.StartAutoConnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user