你可以在没有分屏的情况下使用VR Carboard api吗?
我的观点是使用VR功能的陀螺仪旋转结果,而不使用VR功能。
我发现了这些:在start https://forum.unity.com/threads/how-to-remove-vr-split-screen-when-app-starts-unity-5-6.470962/中禁用VR,以及更多但没有帮助的帮助。
谢谢
发布于 2020-05-07 21:04:17
是的,我成功了!
在播放器首选项中启用VR,将第一个VR选项设置为None,第二个设置为cardboard。然后
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.com/threads/disable-stereo-rendering-with-cardboard-and-gear-sdk.497214/
https://stackoverflow.com/questions/61658008
复制相似问题