Help me how to fix it

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)

1 Like

Set “Active Input Handling” in player settings to “Both” or “Input Manager (Old)”.

12 Likes

Had the same problem, figured out thanks.6945509--816734--upload_2021-3-17_11-32-44.png

31 Likes

It’s the input module of the old event system. Replace it with the input module of the new input system.

1 Like

tnx
with your help i fix that : )

thanks

thank you

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.

5 Likes

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

it didint work:(

Thanks

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

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

Thanks, This helped me so much!