Search Unity

Input refresh between scenes

Discussion in 'Scripting' started by eduilnero, May 3, 2018.

  1. eduilnero

    eduilnero

    Joined:
    May 9, 2013
    Posts:
    15
    Hi, I have been investigating this issue for a while and couldn't find a proper solution. It seems that if I am pressing a button and, while the button is down, a new scene loads, the button is not only not recognised as pressed (using GetButton or GetAxis) but also when it releases, GetButtonUp doesn't return true. That happens until I release and press again in the newly loaded scene. I saw several posts related but none of them with a proper solution. Is this really working like this in Unity? If so, is there any workaround for this?

    Thank you very much.