当前位置:   article > 正文

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

invalidoperationexception: you are trying to read input using the unityengin

问题描述:

我在运行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。即可解决问题。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/140787
推荐阅读
相关标签
  

闽ICP备14008679号