Unity报错:InvalidOperationException:You are tring to read lnput using the UnityEngine. ……的解决办法

问题描述:

我在运行steam VR的Interaction_Example时报错,其中unity为2021.3.6f1c1,steam VR(2.7.3),头显为HTC Vive pro2。报错具体内容如下:

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 () (at <024c5946c54a415f97bc93dfc0e47497>:0)

问题解决:

点击Edit->Project Settings...->Player->Other settings,将active lnput handling选项设置为Both。即可解决问题。

猜你喜欢

转载自blog.csdn.net/weixin_43042683/article/details/126876330