Search Unity

Input System Bug: w/ PlayerInput.onControlsChanged

Discussion in 'Input System' started by Allthebees, May 18, 2020.

  1. Allthebees

    Allthebees

    Joined:
    Apr 22, 2017
    Posts:
    18
    Hey,

    So I think I have found a bug. I subscribe to PlayerInput.onControlsChanged, but if I make the PlayerInput.enabled to false, and then set it to true again, all of the methods subscribed to the event do not fire. I have tried various work arounds but it seems that once you disable a PlayerInput, the onControlsChanged event will never fire again.

    Does anyone know a work around for this that I have missed or have I done anything else wrong?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,283
  3. Allthebees

    Allthebees

    Joined:
    Apr 22, 2017
    Posts:
    18
    I have created a reproducible test project and sent off a bug report :)
     
    karl_jones likes this.