Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: stevegreat on August 22, 2016, 01:13:19 AM

Title: Red question mark texture rendering at the start of Xbox One build
Post by: stevegreat on August 22, 2016, 01:13:19 AM
Hi!

I'm completely stumped with a strange issue.  I've been porting a project that uses NGUI to Xbox One and everything has been fine until I pulled some recent changes off of git.  Now whenever any scene of the project is run on an xbox one build it will display a giant red pixelated question mark for half a second.  I believe it's NGUI related as it'll only occur once I bring in an NGUI element (which generates the UI Root).  The NGUI version is 3.5.1.

Unfortunately reverting the changes I pulled doesn't resolve the issue.  It's likely the pull overwrote some .meta files I hadn't checked in yet so I don't have those originals.  Is there a default NGUI settings I could check that configure default textures or something?  Or maybe a way to clear any cached or corrupted configurations?  I'm not deeply familiar with the library.

Here's what the texture looks like.
http://imgur.com/81dj3K8
Title: Re: Red question mark texture rendering at the start of Xbox One build
Post by: stevegreat on August 22, 2016, 08:47:48 PM
Just as a follow up to this issue if anyone sees this post.  This turned out to be a Unity / Xbox One specific configuration issue.  Due to some .meta file mix ups with our version control I was able to create a project where the XboxOne_Localization folder was created and configured correctly (containing splash images and logos) but the old method of assigning these splash images in the player settings was missing / corrupted.

I believe there must be a bug with XBO Unity building as you need both of these configurations set up and matching or the old image will flash on the screen.  Corrupted, missing, default, or not, it will display!

I think any connection to NGUI is a red herring.  Possibly the time it takes for NGUI to initialize itself is enough to make this issue visible on the screen.  Sorry for the confusion!

Solution:
1. Delete or move Priconfig.xml from your project root directory.
2. In the player settings assign your splash image.
3. Move or recreate Priconfig.xml back into the root directory.
4. Build as normal!