Unity VR LandscapeLeft 在 iOS 中不工作
Unity VR LandscapeLeft not working in iOS
我使用的是 Unity 5.3.4f1,我试图强制我的应用程序中的某些场景仅向左横向。
这是我在唤醒方法中使用的代码段
Scene scene = SceneManager.GetActiveScene();
String name = scene.name;
if (name.Equals ("Menu VR")) {
Screen.orientation = ScreenOrientation.LandscapeLeft;
}
需要放在别处吗?它在 android 中工作得很好,但在 iOS.
中不起作用
使用XCode8,测试设备为运行iOS10.0.2
也许这是 Unity 的一个错误?我也尝试过使用 Unity 5.4.1,但它仍然无法在 iOS.
上运行
我使用的是 Unity 5.3.4f1,我试图强制我的应用程序中的某些场景仅向左横向。
这是我在唤醒方法中使用的代码段
Scene scene = SceneManager.GetActiveScene();
String name = scene.name;
if (name.Equals ("Menu VR")) {
Screen.orientation = ScreenOrientation.LandscapeLeft;
}
需要放在别处吗?它在 android 中工作得很好,但在 iOS.
中不起作用使用XCode8,测试设备为运行iOS10.0.2
也许这是 Unity 的一个错误?我也尝试过使用 Unity 5.4.1,但它仍然无法在 iOS.
上运行