Search Unity

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?