93b4e0d3b1
Single ProductInfo.{ProductName,MenuRoot} const; routes all user-facing
'MCP For Unity' (capital F) display strings to it. Internal identifiers,
namespaces, and manifest.json 'Unity MCP' unchanged.
Claude-Session: https://claude.ai/code/session_01XFiuAUxNS9riUJFFBEHvui
31 lines
822 B
C#
31 lines
822 B
C#
using MCPForUnity.Editor.Constants;
|
|
using MCPForUnity.Editor.Setup;
|
|
using MCPForUnity.Editor.Windows;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace MCPForUnity.Editor.MenuItems
|
|
{
|
|
public static class MCPForUnityMenu
|
|
{
|
|
[MenuItem(ProductInfo.MenuRoot + "/Toggle MCP Window %#m", priority = 1)]
|
|
public static void ToggleMCPWindow()
|
|
{
|
|
MCPForUnityEditorWindow.ShowWindow();
|
|
}
|
|
|
|
[MenuItem(ProductInfo.MenuRoot + "/Local Setup Window", priority = 2)]
|
|
public static void ShowSetupWindow()
|
|
{
|
|
SetupWindowService.ShowSetupWindow();
|
|
}
|
|
|
|
|
|
[MenuItem(ProductInfo.MenuRoot + "/Edit EditorPrefs", priority = 3)]
|
|
public static void ShowEditorPrefsWindow()
|
|
{
|
|
EditorPrefsWindow.ShowWindow();
|
|
}
|
|
}
|
|
}
|