Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug Reseting the scene makes InputUpdate do more and more calls

Discussion in 'Input System' started by YoshiTheSnow, Jan 20, 2023.

  1. YoshiTheSnow

    YoshiTheSnow

    Joined:
    Aug 31, 2021
    Posts:
    2
    Hi, i'm having a problem that whenever i reset the game scene, the InputUpdate function start to scaling the number of calls in the game, making the game lag in each input i gave after some resets.
    I tried to delete the player before starting other scene, changed the input reading to event reading, but i just don't know how to fix that.

    i'll appreciate feedback, thanks.
    Ps: it's my first time asking in the forum, so if need more information about pls tell.
     
  2. MatanYamin

    MatanYamin

    Joined:
    Feb 2, 2022
    Posts:
    110
    Can you share with us some code?