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

**URL:** <https://forums.unrealengine.com/t/disable-the-player-completely-when-widget-opens-and-re-enable-when-closed/2711942>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [April 6, 2026, 11:46pm UTC](https://forums.unrealengine.com/t/disable-the-player-completely-when-widget-opens-and-re-enable-when-closed/2711942 "2026-04-06T23:46:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maplenuggets](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maplenuggets](https://forums.unrealengine.com/u/Maplenuggets)\
**Post date:** [April 6, 2026, 11:46pm UTC](https://forums.unrealengine.com/t/disable-the-player-completely-when-widget-opens-and-re-enable-when-closed/2711942/1 "2026-04-06T23:46:28Z")

</div>

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 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/a/47a3befc4cf133714e5c373521fb194bbd06abbb.png)

---

<div class="post-metadata">

**Author:** ![SpectreKelevra](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spectrekelevra/32/723050_2.png) [@SpectreKelevra](https://forums.unrealengine.com/u/SpectreKelevra)\
**Post date:** [April 7, 2026, 12:07am UTC](https://forums.unrealengine.com/t/disable-the-player-completely-when-widget-opens-and-re-enable-when-closed/2711942/2 "2026-04-07T00:07:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Maplenuggets](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maplenuggets](https://forums.unrealengine.com/u/Maplenuggets)\
**Post date:** [April 7, 2026, 12:08am UTC](https://forums.unrealengine.com/t/disable-the-player-completely-when-widget-opens-and-re-enable-when-closed/2711942/3 "2026-04-07T00:08:40Z")

</div>

Life saver thank you so much \<3!
