I have 2 widgets load on the screen, 1 fullscreen and a smaller 1 that goes over the fullsize 1. If I hit the WSAD keys my player still moves in game and if I hold down the Left or Right mouse buttons the camera moves to. I load and unload the widgets with the O key. How can I stop the player movement and the camera movement while the widgets are on the screen?
1 Like
- set the input mode mode to
UI Only
instead - or disable input on the controller
- or on the player
- or gate it with a boolean
- or pause the game
set the input mode mode to
UI Only
instead
If you follow this route O input will stop working in the controller, and will need to be implemented in the widget => override onKeyDown
1 Like
Thanks. I used the UI Only and override keydown and it woks. Only problem is if you click inside the widget (not the buttons in the widget) then the key override doesnt work. You have to click on a button inside the widget for the overrride key to work. I set it to the “In Widget Of Focus” in the Set Input UI only but that didnt help.
1 Like
You may need to set keyboard focus, and make the widget focusable.
I figured it out. Thank you for the help!
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.