# \[4.7.3\] Set Input Mode UIOnly locks input on level switch

**URL:** <https://forums.unrealengine.com/t/4-7-3-set-input-mode-uionly-locks-input-on-level-switch/311441>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 17, 2015, 9:10pm UTC](https://forums.unrealengine.com/t/4-7-3-set-input-mode-uionly-locks-input-on-level-switch/311441 "2015-03-17T21:10:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin\_g](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kevin\_g](https://forums.unrealengine.com/u/kevin_g)\
**Post date:** [March 17, 2015, 9:10pm UTC](https://forums.unrealengine.com/t/4-7-3-set-input-mode-uionly-locks-input-on-level-switch/311441/1 "2015-03-17T21:10:47Z")

</div>

Hello,

I ran into a strange bug where my input was completely ignored if I switched levels while the game was paused. The project I am currently working on is a bit big now and started from around 4.3, so I don’t know if it’s feasible to attempt to reproduce.

The general setup that I had that caused this to happen:

1. Have a ‘Title Screen’ level and the actual game level
2. Title screen loads into main game level with a UMG button that calls ‘Open Level’ node
3. Pause the game to go into the pause menu and return to title screen using ‘Open Level’ node
4. All input lost; can’t even push ESC to quit game from viewport (Mouse input still works)

The way I fixed it was simple once I got to thinking about how pause affects parts of the engine. Before the player returns to the ‘Title Screen’ from the pause menu, I unpause the game.

EDIT: Changed topic title from “Set game paused can _potentially_ stop all input when level switching (and a quick fix)” to “Set Input Mode UIOnly locks input on level switch”

The problem was related to the ‘Set Input Mode UI Only’ node being called right before the level switch. After I removed the call to the node, everything was fine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [March 18, 2015, 1:51pm UTC](https://forums.unrealengine.com/t/4-7-3-set-input-mode-uionly-locks-input-on-level-switch/311441/2 "2015-03-18T13:51:11Z")

</div>

Hello kevin\_g,

I was unable to reproduce this issue on our end with the information provided. I have a few questions that will help narrow down what issue it is you are experiencing.

Quick questions:

1. I see that you mentioned it may not be possible to reproduce this issue in a clean project. Could you check see if the current blueprint setup that you are using can reproduce this issue when re-made in a clean project?
2. If so, could you provide any differences or discoveries that will help reproduce this issue on our end?
3. Could you provide screen shots of the blueprints involved with this issue?

---

<div class="post-metadata">

**Author:** ![kevin\_g](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kevin\_g](https://forums.unrealengine.com/u/kevin_g)\
**Post date:** [March 18, 2015, 8:51pm UTC](https://forums.unrealengine.com/t/4-7-3-set-input-mode-uionly-locks-input-on-level-switch/311441/3 "2015-03-18T20:51:31Z")

</div>

Hey Rudy,

I’ll get try to get some more info up later today when I get some free time.

---

<div class="post-metadata">

**Author:** ![kevin\_g](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kevin\_g](https://forums.unrealengine.com/u/kevin_g)\
**Post date:** [March 18, 2015, 11:37pm UTC](https://forums.unrealengine.com/t/4-7-3-set-input-mode-uionly-locks-input-on-level-switch/311441/4 "2015-03-18T23:37:17Z")

</div>

Found the issue. It’s related to this node:

![34839-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/6/f66688c2fecee6fb7222062e65bac91aad22f42d.png)

If this is enabled prior to a level switch, then all input will be locked.

Quicker repro node setup in any blank project:

 ![34840-inputlock.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/a/1baca33046fee058f9306c84a44f7fd452b7a072.png)

After the setup is complete, push the button to restart the level. You will then lose all input except for mouse. ESC won’t quit the in-editor game and Shift + F1 will not bring out the mouse (must alt+tab or some other OS method to bring out the mouse).

---

<div class="post-metadata">

**Author:** ![kevin\_g](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kevin\_g](https://forums.unrealengine.com/u/kevin_g)\
**Post date:** [March 19, 2015, 12:15am UTC](https://forums.unrealengine.com/t/4-7-3-set-input-mode-uionly-locks-input-on-level-switch/311441/5 "2015-03-19T00:15:23Z")

</div>

The problem was related to the ‘Set Input Mode UI Only’ node being called right before the level switch. After I removed the call to the node, everything was fine.

---

<div class="post-metadata">

**Author:** ![Kochab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kochab](https://forums.unrealengine.com/u/Kochab)\
**Post date:** [July 22, 2015, 5:45pm UTC](https://forums.unrealengine.com/t/4-7-3-set-input-mode-uionly-locks-input-on-level-switch/311441/6 "2015-07-22T17:45:04Z")

</div>

The way I fixed it was calling Set Input Mode Game Only right after the level switch node.
