赞
踩
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日。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。