I'm working on a school project and we are building a game for Google Cardboard using Unity 5. I have all the drivers, SDK, and JDK files I need and I can play the game in editor and it will appear on my phone via the Unity Remote 4 app. It has terrible fps (less than 10, I'd guess) but that's not even my question.
I tried publishing the project and moving it to my phone to see if that would help with frame rate. Instead, I got a blue screen. Blue like an empty unity scene. I can still see the cardboard outline interface so I know that objects are still in the scene but I can't see anything.
I don't know if this can help you (without any further information) but you could try these options
turn off Cardboard.SDK.nativeDistortionCorrection: to make Unity draw directly to the screen.
Edit Cardboard.CreateStereoScreen() and change the settings.
ORIGINAL POST: First answer by user "smd"
Go to File > Build Settings , select Android as the platform.
Click Player Settings , Under Resolution and Presentation , change default orientation to Landscape Left .
确保在发布设置下取消选择拆分应用程序二进制文件
I had a problem with a blue screen on Android devices which sounds similar to this one. From what I found out it may happen that some Start() callbacks are not called correctly on Android in the startup scene. If nothing happens but the camera is active it only renders a blue background screen. This happens only very sporadically.
There are two things you can try:
Create an "empty" startup scene which only loads your actual scene.
Use not only Start() but also OnEnable() for backup.
If you are interested in the complete story have a look at my blog entry .
Make sure you hit "Add Open Scenes" in Build Settings such that all you scenes are added to the build. This was the solution for my case.
I have resolved my issue for Google cardboard by these steps.
Edit -> Project settings -> Player -> Other settings -> Graphics APi
And remove Vulkan
from the list by clicking -
at the right bottom of the box.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.