UE5 hide UI problem

Hello, I’m new in UE, and I trying to create top-down game. I created a dialogue system with widgets, but after dialogue in game appeare a problem. Before the dialogue I could hold my mouse buttons and move my cursor around a screen, but after I can’t. After holding my mouse button cursor dissapears and stop moving around a screen. (You can see the problem on video below)

2023-09-19 18-06-06.mkv (8.3 MB)

It feels like widget hide, but still on screen. I’m using blueprints.

This is how I create widget with text:

This is how I generate the response buttons:

This is how I handle response button clicked.

This is how I trying to close the dialogue widget:

Also tried with set visibility, but it works the same way.

Please help me to solve this issue. If you have any suggestions, I’ll be glad to hear it out.

I’ve had this problem before. The issue was the engine defaulting to the wrong mouse capture mode when closing the widget. I fixed it with a SetViewportMouseCaptureMode node in the function that close my dialog (and inventory) widgets like this:

In reverse, when opening dialog, I don’t disable input, but just set input mode to ui only

Not sure that part really matters as far as the clicking issue goes, but figured it worth a mention.

1 Like

The solution was calling this at the end of my Close Widget Function:
image
With UNTICKED “Hide Cursor During Capture”

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.