unity-game-engineinvalidoperationexception

I am trying to code movement in unity and I keep getting this error and I don't know what it means


This is the error I get in the output and I've been trying to diagnose the issue for an hour now, I'm new to unity so this is kind of confusing to me.

The error.

This is the code I'm using, following a brackeys tutorial


Solution

  • Your project may be set to New Input System. From the Edit menu, go to project setting and in the player section, change the Active Input Handling to Both.

    enter image description here

    enter image description here