- Home /
Daydream publishing errors
Hi All,
I'm trying to publish a game onto Daydream, but I'm getting 3 errors I can't seem to get rid of. And I can't find any documentation on how to solve them. The errors are:
1- The app does not suppress system bars
2- The app does not use the Daydream controller properly throughout the app experience
3- The app does not exit when a user selects the home or back button
The first error is confusing, as Unity 5 removes system bars automatically with Immersive Mode. So games always run in full screen. Or am I missing something in my code, or manifest to force this to always be the case?
The second error seems like they are saying that the controller HAS to have a function in the game. So games that don't use the controller are not worthy of Daydream. Is this the case? Because my game doesn't need a controller. Even though I have implemented the controller API so that you can press the button to return to the Daydream Home.
The third error, I have implemented the controller API into my game, but does this mean I need to map the actual correct buttons on the controller to a game exit event?
If anyone has any insight, let me know. I'll continue testing, editing and submitting to see if anything works.
I'm struggling with the first one myself, so I could also use an answer for that, but I can tell you that for #3 you need to add a script that waits for Input.Get$$anonymous$$eyDown($$anonymous$$eyCode.Escape) and then either exits the app or reverts it to 2D mode if it has one. That's the keycode for the X in the corner.
@DFledermaus I just got this response back from Google Play support:
While testing your app, we found that a system bar appears right after launching the app from Daydream home. The bar that appears is the home/back button bar. Please make sure system bars are suppressed when launching the app from both the 2D and Daydream home.
So this seems to be a bug in Unity 5.6 more than anything else, because Unity say they support Daydream natively now. I'll forward this feedback to Unity Support.
Thanks for the heads up RE the exit key. I'll get that in. Still confused about the 2nd point, I can't seem to find any information anywhere as to wether it's an obligation or not to use the controller during gameplay.
I don't suppose it's too much to ask them how to suppress the system bars in a Unity app? The pages the developer guide refers to on this subject only apply to non-Unity apps.
Answer by Captain-Awesome · Mar 22, 2017 at 07:19 AM
Are you doing in app purchases? I read there was a bug caused by in app purchases that makes the system bars appear. I'm not, and didn't have this problem from my game submitted with the Daydream Preview version of Unity.
The home button has to go to Daydream's home screen, but I think the pause button also has to pause the game.
DFledermaus is right, use Keycode.Escape to handle the X presses. (I just got rejected for that rule too :)