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)
Had the same problem, figured out thanks.
It’s the input module of the old event system. Replace it with the input module of the new input system.
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.
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!
