I’ve dug around a bunch and I can’t seem to figure this one out. I do Set Show Mouse Cursor true and the mouse shows up just fine and I can interact with with UI elements, but when I set Show Mouse Cursor to false, the user must first click on the game to capture the mouse input again. This, of course, fires any input events bound to the left mouse button which is not ideal.
Is there a way to force capture the mouse without forcing the user to click on the screen again? Perhaps do a software cursor?
that is another point why i create my UI inside the PlayerController, since they belong to it anyways.
I have a GameHUDWidget created inside PC. Inside it there are other UI elements with its own hierarchy stored f.e. Menus.
So if there is an event (like Input, or Overlap) I tell the PlayerController that he might do something to this GameHUDWidget f.e. Open a Menu
If that is the case before i toggle the widgets visibility i call the func you see above. Instead of having the Hybrid Set Input Game and UI i seperate them to have more control UI only or Game only.
To answer your question in which class do you do the things you posted?