以下の内容はhttps://www.hanachiru-blog.com/entry/2022/08/08/120000より取得しました。


【Unity】「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.」というエラーの対処法

はじめに

以下のようなエラーが出てきたので、対処法をメモしておきます。

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.

対処法

新しいInputSystemが導入されているのに、古いInputManagerを使っているのでこのエラーが出てきます。

古いInputManagerに戻すにはProjectSettings -> PlayerよりActive Input HandlingBothにしてあげればOKです。

Active Input Handlingを変更

古いInputManagerしか使わない、もしくは新しいInputSystemに置き換える場合は、それ以外を選ぶと良いでしょう。




以上の内容はhttps://www.hanachiru-blog.com/entry/2022/08/08/120000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14