如何结合GearVR调整ARCore的背景相机?

问题描述 投票:0回答:1

我正在使用三星Galaxy S8,Unity3D,Gear VR和ARCore。 ARCore被用作智能手机相机的传递。不幸的是,背景的分辨率被拉长了。 (正如您在图像中看到的那样,应该显示一个圆圈)

有谁知道如何更改背景分辨率?

enter image description here

unity3d arcore gear-vr
1个回答
0
投票

经过很长一段时间的摆弄,我找到了一个可以接受的解决方案。

public class SetResolution : MonoBehaviour {
    public int width = 1480; //half of the Samsung S8 WQHD+ 2960x1440 resolution 
    public int height = 1440;

    void Start () {
        Screen.SetResolution(width, height, true); 
    }

    void Update () {
    }
}

也许有一个更优雅的解决方案,但它适合我。

© www.soinside.com 2019 - 2024. All rights reserved.