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)

Unity报错:InvalidOperationException:You are tring to read lnput using the UnityEngine. ……的解决办法_第1张图片

问题解决:

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

Unity报错:InvalidOperationException:You are tring to read lnput using the UnityEngine. ……的解决办法_第2张图片

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