Author Topic: GUI not showing on PC build - please help!  (Read 6965 times)

dt1000

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
GUI not showing on PC build - please help!
« on: April 20, 2015, 07:40:09 AM »
Hi there,
I have been using nGUI for a while now and it has been awesome.
It works flawlessly on iOS, Android and in browsers.
However... when I recently built a PC version of my project, to take some sweet screenshots, the GUI doesn't appear.
Everything else works fine, but the GUI is invisible.

I am probably missing something obvious... does anyone have any idea what I might need to do to fix this?

Thanks,
Dan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: GUI not showing on PC build - please help!
« Reply #1 on: April 20, 2015, 08:12:52 PM »
There is no reason on NGUI's end why the UI wouldn't be visible on the PC build but visible on mobiles.

dt1000

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: GUI not showing on PC build - please help!
« Reply #2 on: April 20, 2015, 09:41:21 PM »
Hey, ArenMook, thanks for checking in.
What you say may well be true, however...
After trying all sorts of different fixes, I went through all of my old builds to see exactly when this problem started...
And it was when I upgraded nGUI from v3.7.8 to v3.8.2.
Coincidence? Unless I changed anything else in that particular build, I doubt it. (Although I will double check this evening).

Could there be anything in this version upgrade that might mess with rendering on PC?

It even works fine in the editor... it is just the standalone PC version that is causing headaches. Very strange...

Thanks,
Dan

dt1000

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: GUI not showing on PC build - please help!
« Reply #3 on: April 20, 2015, 10:24:06 PM »
Ah... apparently it was a coincidence. Sorry about that... :-[

Having looked over the NGUI changelogs to see if there was anything that could be to blame I noticed that one specific UI element was still rendering.
Putting 2 and 2 together, I realized that what was causing the error was the texture compression on the atlas - it's a mobile specific compression that doesn't work on PC. Hence no GUI.

I removed the compression and everything started working again. Yay!

:D