Search Unity

Help me how to fix it

Discussion in 'Input System' started by lawrenceblasco7812, Oct 20, 2020.

  1. lawrenceblasco7812

    lawrenceblasco7812

    Joined:
    Oct 20, 2020
    Posts:
    1
    InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
    iiii.Update () (at Assets/iiii.cs:18)
     
    wave-rider likes this.
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Set "Active Input Handling" in player settings to "Both" or "Input Manager (Old)".

    upload_2020-10-20_15-57-56.png
     
    Zeki16, muhabby_pnj, Alaadel and 6 others like this.
  3. benardw51

    benardw51

    Joined:
    Feb 2, 2020
    Posts:
    1
    Had the same problem, figured out thanks. upload_2021-3-17_11-32-44.png
     
  4. pusa

    pusa

    Joined:
    Aug 10, 2016
    Posts:
    2
    It's the input module of the old event system. Replace it with the input module of the new input system.
     
    Naimori likes this.
  5. qwerty22848

    qwerty22848

    Joined:
    Jan 25, 2022
    Posts:
    2
    tnx
    with your help i fix that : )
     
  6. robocal1234

    robocal1234

    Joined:
    Nov 25, 2021
    Posts:
    1
  7. super_amr_man33444

    super_amr_man33444

    Joined:
    Apr 6, 2022
    Posts:
    3
  8. Alaadel

    Alaadel

    Joined:
    Apr 6, 2013
    Posts:
    30
    I also found that my EventSystem object is using the old Event System component, and had to click the replace button on the component to add the new version.
     
  9. achimmihca

    achimmihca

    Joined:
    Feb 13, 2016
    Posts:
    283
    I found that this issue occurs even if you do not have an EventSystem added to your scene.
    Just started a new 2D project, added a UIDocument with a button, added the new InputSystem, and ran into this issue.

    Seems like something implicitly adds the old EventSystem to the scene when using UIToolkit?
    Unity 2021.3.4f1
     
  10. ZanderUniverse

    ZanderUniverse

    Joined:
    Oct 6, 2022
    Posts:
    1
    it didint work:(
     
  11. dwsgk

    dwsgk

    Joined:
    Jun 21, 2022
    Posts:
    1
    Thanks
     
  12. RussianVodka

    RussianVodka

    Joined:
    Jun 5, 2019
    Posts:
    2
    Definitely you should update EventSystem to the new Input System UI Input Module, in case you are creating a new project using both might bloat your project with functionality of both old and new
     
  13. kalininnikita074

    kalininnikita074

    Joined:
    May 15, 2022
    Posts:
    1
    InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
    UnityEngine.Input.GetKey (UnityEngine.KeyCode key) (at <0b0249d5e61a446b913cd2910a5a40f5>:0)
    Invector.vCharacterController.vInput.isJoystickInput () (at Assets/Invector-3rdPersonController/Basic Locomotion/Scripts/CharacterController/vInput.cs:153)
    Invector.vCharacterController.vInput.OnGUI () (at Assets/Invector-3rdPersonController/Basic Locomotion/Scripts/CharacterController/vInput.cs:56)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    Help me problem fix to Input settings Invector