(Unity6)インプットシステムでエラー表示が出た場合の対処法

下記のようなエラーが表示された場合の対処方法

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.

・「Edit」→「ProjectSettings」

・「Player」を選択

・「Other Settings」を展開

・「Active Input Handling」を「Both」に変更でOK