升级XR插件版本
This commit is contained in:
36
Packages/MCPForUnity/Editor/MenuItems/MCPForUnityMenu.cs
Normal file
36
Packages/MCPForUnity/Editor/MenuItems/MCPForUnityMenu.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using MCPForUnity.Editor.Setup;
|
||||
using MCPForUnity.Editor.Windows;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MCPForUnity.Editor.MenuItems
|
||||
{
|
||||
public static class MCPForUnityMenu
|
||||
{
|
||||
[MenuItem("Window/MCP For Unity/Toggle MCP Window %#m", priority = 1)]
|
||||
public static void ToggleMCPWindow()
|
||||
{
|
||||
if (MCPForUnityEditorWindow.HasAnyOpenWindow())
|
||||
{
|
||||
MCPForUnityEditorWindow.CloseAllOpenWindows();
|
||||
}
|
||||
else
|
||||
{
|
||||
MCPForUnityEditorWindow.ShowWindow();
|
||||
}
|
||||
}
|
||||
|
||||
[MenuItem("Window/MCP For Unity/Local Setup Window", priority = 2)]
|
||||
public static void ShowSetupWindow()
|
||||
{
|
||||
SetupWindowService.ShowSetupWindow();
|
||||
}
|
||||
|
||||
|
||||
[MenuItem("Window/MCP For Unity/Edit EditorPrefs", priority = 3)]
|
||||
public static void ShowEditorPrefsWindow()
|
||||
{
|
||||
EditorPrefsWindow.ShowWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 42b27c415aa084fe6a9cc6cf03979d36
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user