- Home /
First button press don't always register after scene load.
Anyone knows what this might be? In the editor it almost always skips the first button press, and in builds it only sometimes skips the first button press.
I have the latest version of Unity installed, but I have experienced this issue in varies of projects for several years.
I'm on MacOS currently with a PS4 controller.
Are you doing the input polling in FixedUpdate? You can miss input there since it doesn't necessarily run every frame. Input should be polled in Update.
Nope. Update.. and it is always only the first button press the is possibly skipped.
Are you able to replicate the behavior on an otherwise empty project? I would test that to try to identify if it's an issue with other parts of your code. And if you can, I would suggest submitting a bug report along with the repo project.
I will do that tomorrow.
I am pretty sure I did in Unity3, back when I finished my last game, and the issue occurred even in a clean project. Will get back to you.
You might also try taking a look at Rewired from the asset store as replacement for Unity's input management. I've never used it on anything but PC, but it has good support for other platforms and comes highly recommended.
And there is a free trial that would show you right away if it resolves your issue, which would indicate whether it is indeed a Unity problem or not.
Your answer
Follow this Question
Related Questions
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
[SOLVED] Input.GetAxis("Horizontal") returns wrong value? -1 Answers
Bullet Bug 1 Answer
When holding down shift cant use the "a" key, an extremely weird bug! 2 Answers
Using input.getbuttondown to play audio = NOT WORKING? :( 2 Answers