Author Topic: iOS Build Black Screen - NGUI 2.0.9  (Read 7505 times)

apologue

  • Guest
iOS Build Black Screen - NGUI 2.0.9
« on: July 09, 2012, 11:26:14 PM »
Hi there,

First off, NGUI has been great to work with. We were experiencing performance issues using Unity's GUI system and purchased NGUI for our current project. Everything works in Unity preview without any issues, and we were able to build to iOS devices.

Unfortunately, now we are getting a black screen after the initial loading screen for our app but can still click on buttons behind the black screen. There aren't any compiler errors or errors in xCode so it is making it really hard to troubleshoot this one.

Has anyone encountered this blank screen issue before? Any suggestions on things to look at.


Appreciate help in advance!

catacomber

  • Guest
Re: iOS Build Black Screen - NGUI 2.0.9
« Reply #1 on: July 09, 2012, 11:34:08 PM »
See if this helps you. If not post. Trying to help  . . .   :  )

http://stackoverflow.com/questions/8945292/ios-5-black-screen-after-segue

Just learning NGUI but have been programming with ios for over a year.  Did something get changed in your code accidentally?

Or camera problem?

http://www.tasharen.com/forum/index.php?topic=789.0
« Last Edit: July 09, 2012, 11:37:03 PM by catacomber »

dafide18

  • Guest
Re: iOS Build Black Screen - NGUI 2.0.9
« Reply #2 on: July 09, 2012, 11:53:32 PM »
No error with view in the console log when the game running ?
Because I already saw that problem in IOS when more one view are used... but there was always a log error.
(if you have any plugin)

apologue

  • Guest
Re: iOS Build Black Screen - NGUI 2.0.9
« Reply #3 on: July 10, 2012, 02:05:39 PM »
Thanks all, everything seems to be set up correctly but still not working as one would expect.

apologue

  • Guest
Re: iOS Build Black Screen - NGUI 2.0.9
« Reply #4 on: July 10, 2012, 02:50:48 PM »
Is it possible that a shader or lack there of could cause this issue?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: iOS Build Black Screen - NGUI 2.0.9
« Reply #5 on: July 10, 2012, 06:09:55 PM »
Can't say I've heard of a black screen before. Only deferred rendering used to cause a black screen with NGUI Free 1.68, but that's not what you're getting.

Try building one of NGUI's examples. If they work, then it's something specific to your project -- such as an extra camera that tries to render after your UI camera, for example.

apologue

  • Guest
Re: iOS Build Black Screen - NGUI 2.0.9
« Reply #6 on: July 12, 2012, 09:34:20 AM »
Resolution:

Verify Atlas texture size does not exceed 2048 and that Atlas material was using Unlit Transparent/Colored shader.

Things that did not solve the issue:

- Reverting Unity version
- Setting up a new Unity project
- Modifying camera and depth settings
- Removing and reinstalling NGUI and Prime31 plugins
- Removing Prime31 plugins



Cause:

I had added one too many graphics to my texture Atlas and had not realized it had gone up from 2048 to 4096. This was causing the issue of a blank, black screen with invisible buttons/backgrounds/etc that still functioned on our test devices - iTouch 4 and iPad 1 running iOS 5.0 and 5.1.


 Thank you everyone in this thread for the help and ideas. They led me to focus on what was wrong with my project and confirm settings between an older backed up version of the project that had worked.

P15Studios

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: iOS Build Black Screen - NGUI 2.0.9
« Reply #7 on: April 10, 2013, 03:47:57 PM »
Second that and thank you for being so precise with your changes. I did the exact same thing and ran into the exact same issue. This has solved it.