Skip to content

Create UI but failed #383

@segatecm

Description

@segatecm

Description:
I'm encountering an issue when trying to create a UI Button in Unity 2022. The usual menu path GameObject → UI → Button seems to be missing. It appears that the Button prefab has been moved under Legacy in the UI menu.

Environment:

Unity Version: 2022.x

Platform: [e.g., Windows 10 / macOS]

UI System: Built-in Unity UI (uGUI)

UnityMCP report Error:
ExecuteMenuItem failed because there is no menu named 'GameObject/UI/Button'
UnityEditor.EditorApplication:ExecuteMenuItem (string)
MCPForUnity.Editor.Tools.ExecuteMenuItem:HandleCommand (Newtonsoft.Json.Linq.JObject) (at ./Library/PackageCache/com.coplaydev.unity-mcp@edd7817d40/Editor/Tools/ExecuteMenuItem.cs:35)
MCPForUnity.Editor.Tools.CommandRegistry:ExecuteCommand (string,Newtonsoft.Json.Linq.JObject,System.Threading.Tasks.TaskCompletionSource`1) (at ./Library/PackageCache/com.coplaydev.unity-mcp@edd7817d40/Editor/Tools/CommandRegistry.cs:248)
MCPForUnity.Editor.MCPForUnityBridge:ProcessCommands () (at ./Library/PackageCache/com.coplaydev.unity-mcp@edd7817d40/Editor/MCPForUnityBridge.cs:954)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    need more infoNeeds more information before an action step can be taken

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions