Unity 输入冲突-InvalidOperationException

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
Unity 输入冲突-InvalidOperationException_第1张图片
找到Active Input Handing
Unity 输入冲突-InvalidOperationException_第2张图片
选择你需要的输入系统。注意默认选择的是Input System Package(New),我这里选择Both解决报错问题,其他的未测试。
特此记录:2022年4月2日。

你可能感兴趣的:(Unity,unity,3d)