# UI buttons become inactive after clicking world

**URL:** <https://forums.unrealengine.com/t/ui-buttons-become-inactive-after-clicking-world/1670128>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [February 6, 2024, 3:17pm UTC](https://forums.unrealengine.com/t/ui-buttons-become-inactive-after-clicking-world/1670128 "2024-02-06T15:17:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sonictimm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sonictimm/32/625173_2.png) [@sonictimm](https://forums.unrealengine.com/u/sonictimm)\
**Post date:** [February 6, 2024, 4:11pm UTC](https://forums.unrealengine.com/t/ui-buttons-become-inactive-after-clicking-world/1670128/2 "2024-02-06T16:11:14Z")

</div>

> [@EasyAL](#):
>
> In my game, the player cannot see the mouse cursor and input mode is game only by default.

Can you show the logic where you switch the Input Mode between Game Only and Game And UI?

Whenever I change that, I usually also change a variable on the player controller.  
Get Player Controller → Set Show Mouse cursor (true / false)

I’m too lazy to screenshot, so look at this thread: [Show mouse cursor in BP?](https://forums.unrealengine.com/t/show-mouse-cursor-in-bp/379299)

---

_[View the full topic](https://forums.unrealengine.com/t/ui-buttons-become-inactive-after-clicking-world/1670128)._
