能否在没有屏幕分屏的情况下使用VR Carboard api ?
我的观点是想用VR功能的陀螺仪旋转结果,不使用VR功能。
我发现这些 。启动时禁用VR https:/forum.unity.comthreadshow-remove-vr-split-screen-when-app-start-unity-5-6.470962。 还有更多的,但没有帮助的帮助。
谢谢你的帮助
是的,我做了它的工作原理
启用VR里面的玩家首选项,设置第一个VR选项为无,第二个为纸板。然后
void Start()
{
UnityEngine.XR.XRSettings.LoadDeviceByName(UnityEngine.XR.XRSettings.supportedDevices[1]);
UnityEngine.XR.XRSettings.enabled = false;
}
// Update is called once per frame
void Update()
{
Camera.main.transform.localRotation = UnityEngine.XR.InputTracking.GetLocalRotation(UnityEngine.XR.XRNode.CenterEye);
}
谢谢你 https:/forum.unity.comthreadsdisable-stereo-rendering-with-cardboard-and-gear-sdk.497214。