# Widget Buttons and Text Boxes Don't Work Even Though Input Mode is Game AND UI

**URL:** <https://forums.unrealengine.com/t/widget-buttons-and-text-boxes-dont-work-even-though-input-mode-is-game-and-ui/441127>\
**Category:** UI\
**Tags:** button, buttons, text-box, unreal-engine, UI, question, UMG\
**Created:** [January 11, 2019, 11:24pm UTC](https://forums.unrealengine.com/t/widget-buttons-and-text-boxes-dont-work-even-though-input-mode-is-game-and-ui/441127 "2019-01-11T23:24:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spishy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spishy](https://forums.unrealengine.com/u/Spishy)\
**Post date:** [January 11, 2019, 11:24pm UTC](https://forums.unrealengine.com/t/widget-buttons-and-text-boxes-dont-work-even-though-input-mode-is-game-and-ui/441127/1 "2019-01-11T23:24:00Z")

</div>

In my game I have a simple widget that consists of a single button, and a text box. When the player presses 5 on the keyboard, the widget is added to the Viewport, the Mouse Cursor is made visible, and the Input mode is set to Game And UI.

 ![265053-blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/f/93f357d1a7db00ffc7eb5b2f65460af2c80193e0.png)

When I go to test this however, the widget’s button cannot be clicked on, nor will hovering over the button do anything (normally, hovering the mouse cursor over a button will make it slightly brighter). I also cannot click into the Text Box to type in. I have made sure of the following:

1: Both the Text Box and Button are enabled.

2: There is nothing obstructing/in front of the Widgets that would prevent me from clicking on them.

I have also opened a blank project in an attempt to recreate this issue. However, I couldn’t do so, as the button and Text Box worked in the new project (I used the exact same Widget blueprint and copied the code above!).  
Does anyone know what I’m missing here? Is there any other reason the Widget would not register my mouse’s input? Could a project setting potentially be the culprit? Any help would be greatly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![Spishy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spishy](https://forums.unrealengine.com/u/Spishy)\
**Post date:** [January 12, 2019, 12:27am UTC](https://forums.unrealengine.com/t/widget-buttons-and-text-boxes-dont-work-even-though-input-mode-is-game-and-ui/441127/2 "2019-01-12T00:27:59Z")

</div>

I see what I’ve done now. I’ve had an entirely separate widget with a ZOrder of 1 (Used for nice fades to black) where the ZOrder of the widget I was trying to click on was 0. Silly mistake on my part. I’ll mark this question as answered.
