Mouse and movement not restored after exiting puzzle area with fullscreen widget

I’m working on a First Person project in Unreal Engine 5.6. I have a system where, when the player enters a puzzle area, a UI widget is added to the viewport in fullscreen. At that point:

  • The widget takes over the entire screen.

  • The mouse cursor is enabled so the player can interact with the UI.

  • The character’s movement is disabled.

When entering the puzzle, everything works fine: I can use the mouse and interact with the widget.

The problem is when exiting the puzzle area:

  • I remove the widget from the viewport.

  • I set input mode back to Game Only.

  • I disable the mouse cursor.

  • I restore movement with Set Movement Mode (Walking).

But after exiting, the player cannot move or look around, and the mouse doesn’t work either.

Can somebody please help me

Can you show us the code/bp where the removing of the widget and everything else happens.

Also note in what object the code/bp is and what calls that function/event. It might be just that this code is not called at all.

Try adding some PrintString nodes along the way to see what is called and what is not.

I think change input mode is bad practice. When i tried change input mode i get very strange behaviour. You can create a widget that will consume mouse clicks regardless of the clicked area. Also you can change the input control set so that the character doesn’t perform any actions while the widget is open.