IOS的Google Cardboard VR应用中的黑屏

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

我统一创建了一个3D游戏,并将Google纸板SDK添加到了我的项目中。我为IOS构建了游戏,并使用xcode将其打开。

当我运行游戏时,虚拟眼镜(两只眼睛在屏幕上都是黑色的框)被装载,中间的细白线将它们分开。但是屏幕的其余部分(游戏视图)仍然不可用。正在播放游戏声音。

我花了最后大约2小时的时间进行了研究,但没有找到解决方法:(

您知道解决方案吗?

编辑:

这是我在iPhone上运行游戏并将其连接到xcode时的游戏日志。

W1028 13:14:58.468868       1 commandlineflags.cc:1311] Ignoring RegisterValidateFunction() for flag pointer 0x103dc9060: no flag found at that address
2019-10-28 13:14:58.543700+0800 3D Beginner Game nofader[6067:1880658] Built from '2019.1/staging' branch, Version '2019.1.14f1 (148b5891095a)', Build type 'Release', Scripting Backend 'il2cpp'
2019-10-28 13:14:58.548904+0800 3D Beginner Game nofader[6067:1880658] -> registered mono modules 0x1039b3710
-> applicationDidFinishLaunching()
2019-10-28 13:14:58.618918+0800 3D Beginner Game nofader[6067:1880658] Metal GPU Frame Capture Enabled
-> applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A13 GPU
Initialize engine version: 2019.1.14f1 (148b5891095a)
2019-10-28 13:14:59.525441+0800 3D Beginner Game nofader[6067:1880658] INFO [vr/gvr/capi/src/gvr.cc:116] Initialized GVR version 1.170.0
2019-10-28 13:14:59.639509+0800 3D Beginner Game nofader[6067:1880658] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: 'com.generic.bundleidentifier'
2019-10-28 13:14:59.639745+0800 3D Beginner Game nofader[6067:1880658] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: 'com.generic.bundleidentifier'
Created eye textures with a "separate" layout.  The "multi-pass" stereo mode will be used.

2019-10-28 13:14:59.954764+0800 3D Beginner Game nofader[6067:1880658] [Assert] -[UIApplication setStatusBarOrientation:] and -[UIApplication setStatusBarOrientation:animated:] API have been deprecated on iOS 8.0 and are no-ops on iOS 13.0
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shader
2019-10-28 13:15:01.223206+0800 3D Beginner Game nofader[6067:1880658] [Common] _BSMachError: port 13203; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2019-10-28 13:15:01.239173+0800 3D Beginner Game nofader[6067:1880658] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x131f037a0>.
UnloadTime: 2.187667 ms
GVR SDK for Unity version: 1.200.1

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)

No controller support on this platform.
Gvr.Internal.ControllerProviderFactory:CreateControllerProvider(GvrControllerInput)
GvrControllerInput:Awake()

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
ios unity3d virtual-reality google-cardboard
1个回答
0
投票

对我有用的东西:

将您的统一版本降级到2018.3

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