Unity版本:5.4.2f2
Oculus Utilities版本:0_1_3_0_beta
导入 Oculus Utilities 到 Unity中,使用OVR \ Prefabs \ OVRPlayerController.prefab
当前Utilities最新版本为1.11.0,使用老版本的原因是新版 OVRPlayerController 嵌入场景后视角的位置及移动控制异常。
游戏场景在 unity game 视窗中光标正常,Build&Run 为 exe 运行后光标消失。
发现与 OVRPlayerController 相关脚本中的Cursor Lock参数有关。
解决办法:在 Monodevelop-Unity中搜索项目关键词 Lock,将 lockCursor, m_cursorIsLocked 等相关参数设置为 false 。