Android 谷歌纸板适合其他屏幕
我在使用谷歌纸板unity SDK,它允许你使用不同的手机,但我使用的是galaxy S2,它不在列表中 代码中的定义如下所示:Android 谷歌纸板适合其他屏幕,android,unity3d,galaxy,google-cardboard,Android,Unity3d,Galaxy,Google Cardboard,我在使用谷歌纸板unity SDK,它允许你使用不同的手机,但我使用的是galaxy S2,它不在列表中 代码中的定义如下所示: /// Parameters for a Nexus 6 device. public static readonly Screen Nexus6 = new Screen { width = 0.133f, height = 0.074f, border = 0.004f }; /// Parameters for a Gal
/// Parameters for a Nexus 6 device.
public static readonly Screen Nexus6 = new Screen {
width = 0.133f,
height = 0.074f,
border = 0.004f
};
/// Parameters for a Galaxy S6 device.
public static readonly Screen GalaxyS6 = new Screen {
width = 0.114f,
height = 0.0635f,
border = 0.0035f
};
有人知道这些参数是什么,用什么单位吗
/// Information about the screen. All distances are in meters, measured as the phone is expected
/// to be placed in the Cardboard, i.e. landscape orientation.
[System.Serializable]
public struct Screen {
public float width; // The long edge of the phone.
public float height; // The short edge of the phone.
public float border; // Distance from bottom of the cardboard to the bottom edge of screen.
}
答案就是这样:)只有在Unity编辑器中播放场景时才使用该特定列表。它本质上是一个模拟器。在手机上运行时,会从手机本身收集值。如前所述,您无法从游戏本身配置眼镜,您需要使用此网站创建自己的个人资料:
然后你可以将它加载到谷歌纸板设置应用程序中,就像你的眼镜是官方的一样。哈哈,我两天前才注意到。好的,让我们假设屏幕值是从手机抓取的。但是眼镜的参数呢?我的眼镜是彩色交叉眼镜,没有二维码,所以我不能使用谷歌纸板应用程序。我如何设置它?