unity版本:unity2020.3.32f1
报错: 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.get_mousePosition ()
解决方案:
依次点击:file-PlayerSetting-OtherSetting-Configuration
找到Active Input Handing
选择你需要的输入系统。注意默认选择的是Input System Package(New),我这里选择Both解决报错问题,其他的未测试。
特此记录:2022年4月2日。
Unity 输入冲突-InvalidOperationException
最新推荐文章于 2025-03-17 13:12:22 发布
关键词由优快云通过智能技术生成