使用了InputOVR组件
OVR Camera Rig
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.GetKeyDown (UnityEngine.KeyCode key) (at <7901bef25bcc4445a7d744bffc61e126>:0)
Oculus.Interaction.HandPosing.Recording.HandPoseRecorder.Update () (at Assets/Oculus/Interaction/Runtime/Scripts/HandPosing/Recording/HandPoseRecorder.cs:84)
保存原因检查结果:



是这个脚本中使用了传统unity输入判断,而当使用vr开发的时候,是切换了vrTouch输入的,传统输入自然是无效了。
解决方法:
将Hand pose Record禁用,或者将这段代码注释掉都行
本文介绍了在使用Unity进行VR开发时遇到的一个常见问题:传统输入与VR输入之间的冲突。问题表现为使用了InputOVR组件和OVRCameraRig时,由于激活了Input System包而导致的异常。文章给出了两种解决方案:禁用HandposeRecorder组件或注释掉相关代码。
3268

被折叠的 条评论
为什么被折叠?



