Mouse Cursor Not Showing or Widget Buttons Not Clickable in UE5

Table of Contents

Works in Unreal Engine 5.0 to 5.8. Updated November 2026.

Quick answer: after you add your menu widget to the viewport:

  1. Get Player Controller > Set Show Mouse Cursor = true.
  2. Set Input Mode UI Only with In Widget to Focus set to your menu widget.
  3. When you close the menu: Set Input Mode Game Only and Set Show Mouse Cursor = false.

Why the cursor disappears

In a game, the Player Controller hides the cursor and captures the mouse for looking around. Adding a widget to the screen doesn’t change that. You have to tell the controller you’re in a menu now.

Pick the right input mode

NodeUse it forWhat happens
Set Input Mode UI OnlyMain menu, pause menuOnly widgets get input. Game keys stop working.
Set Input Mode Game And UIInventory or shop while the game runsWidgets can be clicked, and game input still works.
Set Input Mode Game OnlyBack to gameplayThe mouse looks around again.

With Game And UI, untick Hide Cursor During Capture if the cursor vanishes while you hold a mouse button.

Buttons still don’t respond?

If the cursor shows but clicks do nothing, something is on top of your button.

  1. Open the widget and select each full-screen element above the button: images, borders, overlays and other widgets.
  2. Set their Visibility to Not Hit-Testable (Self Only) or Not Hit-Testable (Self & All Children).
  3. Leave the button itself on Visible.

Visible blocks clicks. Not Hit-Testable shows the element but lets clicks pass through. A HUD or a loading screen added later, with a higher Z-Order, can also cover your menu.

To find the culprit, open Tools > Debug > Widget Reflector, click Pick Hit-Testable Widgets and hover over the button. It shows which widget is getting the mouse.

In the editor, you may need to click into the game viewport once before it receives input. Shift+F1 frees the mouse while playing in the editor.

Pause menus

When you pause with Set Game Paused, widgets still work, but timers and movement stop. To open and close the menu with the same key while paused, open that Input Action asset and tick Trigger when Paused.

Gamepad and keyboard only

The steps above are for the mouse. For menus driven by a gamepad, see our guide to Common UI keyboard and gamepad navigation.

FAQ

The button works in the editor but not in the packaged game. Set the input mode with In Widget to Focus every time the menu opens. In the editor, clicking into the viewport can hide a missing focus that the packaged game shows.

My game keys stopped working after closing the menu. You set UI Only but never set Game Only again. Call it when the menu closes.

The cursor shows but the camera still moves. You’re in Game And UI mode. Use UI Only for menus that should freeze the camera.

Related tutorials