Disable the player completely when widget opens and re-enable when closed

Hi, I have set up a BP where the player interacts with something (Object A) (using line trace) and a widget pops up and I have disabled the character movement so they cant move. HOWEVER, I can still click an shoot a line trace at the (Object A) over and over again (while widget is open) bringing back up the widget over an over again from the start. How can I stop them shooting a line trace at (Object A) while the widget is open, and when I press a button to close the widget inside the widget they can move, click an start firing line trace again. Thank you :slight_smile:

You can “Set input mode to UI only” when the widget it open, and set it back to “Game and UI” when it’s done.

2 Likes

Life saver thank you so much <3!

1 Like