I am trying to figure out how to regain mouse control after closing a slate menu/widget. I can gain mouse control for the widget easily, but after closing I only regain keyboard control and no mouse control.
I have seen instructions on how to do this but have been unsuccessful with implementing any of the solutions that I have found. Some solutions show removing of all widgets from the screen but that will not be possible in a scenario where you are using Slate for the entire HUD.
A tutorial or an example how to switch between the game controls and a slate widget and back again without removing all the widgets from the screen would be helpful. Basically there will be a main Slate widget for the HUD with all the default HUD elements and upon toggling a menu or a widget you gain mouse control for and can interact with the open widget or any other HUD element that is visible if it can be interacted with. Upon closing the open widget, regain mouse control to the player’s look without having to click inside the viewport to regain mouse control. This is the part that I am struggling with.
Thanks in advance.