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.
Input code differs between the built-in Input Manager and the Input System, and changes are required.
As of Unity 6.1 the Input System is the default method of input handling.
Check the stack trace to determine the origin of the error. Then choose one:
Replace the StandaloneInputModule with an InputSystemUIInputModule . This can be found on the Event System GameObject found in the scene, and there may be an upgrade button on the component.
If you do not have an Event System, create one via , then upgrade it.
Choose one:
See migration from the old input system for information on how to upgrade your own code, or follow a tutorial like this one to learn how to use the Input System generally.
If you switched to the Input System and want to switch back to the old Input Manager.
If you're following a tutorial and don't mind using either system, your project can support both.
This method isn't recommended for long term projects.