Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

4

Found in

4.5.4f1

Issue ID

638138

Regression

No

Input.GetKey(KeyCode) function always returns false after loading a scene even if the key is held down during the load

Input

-

To reproduce:
1. Open attached project
2. Open Test scene
3. Open console
4. Press play
5. Press and hold left shift key
6. Notice "Key held down: True" messages
7. Press spacebar (spacebar loads scene) while holding left shift key
8. Notice that after loading scene messages "Key held down: False" are thrown even if left shift key is held down.

Comments (4)

  1. dgoyette

    Sep 21, 2020 12:25

    @ALTURIS2, it certainly seems like this is never getting fixed, given the shift in development over to the new Input Manager. Though, I have no idea if this issue occurs when using the Input Manager.

    The only viable workaround I know of is to use load the next scene using Additive mode, then destroy the original scene. This is not without its complexity, but with this approach held inputs are maintained throughout the process.

  2. Alturis2

    Sep 15, 2017 20:56

    Are there any updates on this issue? Or a link to the mentioned "internal roadmaps and technical debt pages" ?

  3. Alturis2

    Mar 21, 2017 20:57

    This bug has been around since at least 2013. 4 years now. Is there no workaround for this? No way for developers to make this work? What have people been doing for the past 4 years who needed to ship a game? Just avoiding ever designing a game that required input to retain its state across scene loads?

    The lack of a fix for this over at least 4 years time seems in the category of unacceptable in my opinion.

  4. p_025

    Nov 25, 2014 23:29

    Duplicate of issue #595426

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.