- Home /
[BUG?] CrossPlatformInputManager - button keeps down state after new scene is loaded
I am not sure if this is bug and where exactly to report it, thus I explain it here. Maybe someone can give me better solution or tell me if I did something wrong?
So I have buttons which moves my player (left/right), and when the player reaches the "exit" new scene is loaded. I found out what I think is bug in the standard assets CrossPlatformInputManager - let's say I use button to move left/right - if that button is hold when the call for new scene to be loaded (when player reaches certain spot with trigger on it) is made it is considered still in some kind of "DownState" in the new scene until pressed/released again.
For me I fixed that by going to the ButtonHandler.cs file and adding call to SetUpState() in OnEnable().
void OnEnable()
{
this.SetUpState();
}
Your answer
Follow this Question
Related Questions
InputManager doesn't detect gamepad numbers correctly 1 Answer
how to make a configurable input 1 Answer
Input Manager Snap for Unity 4.3 1 Answer
Modify Verticle axis in the input manager 0 Answers
Unity 5 FPSController can't move 0 Answers