Author Topic: NGUI Fonts randomly disappear when deactivating others  (Read 6424 times)

Vicas

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 8
    • View Profile
NGUI Fonts randomly disappear when deactivating others
« on: December 18, 2014, 08:04:35 AM »
I have a weird phenomenon where, by deactivating one GameObject containing an NGUI Label, other Labels disappear.

I have ensured that all labels have their own unique depth, but that does not solve the problem.

If you look at this example:

.. this has two labels. One for "BANK 3" and one for the number.

When I deactivate the number and replace it with a red cross (not an NGUI label, just an image) the top label disappears:


This also happens when I activate other labels, not just when deactivating. What am I missing here?

Thanks in advance

Vicas

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: NGUI Fonts randomly disappear when deactivating others
« Reply #1 on: January 02, 2015, 05:23:17 AM »
Bump :/

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Fonts randomly disappear when deactivating others
« Reply #2 on: January 02, 2015, 10:01:54 PM »
What version of NGUI and what type of font is it -- dynamic or bitmap?

Vicas

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: NGUI Fonts randomly disappear when deactivating others
« Reply #3 on: January 06, 2015, 03:24:18 AM »
What version of NGUI and what type of font is it -- dynamic or bitmap?

Hello ArenMook. Thanks for answering!

I'm running NGUI Version 3.5.8 and the fonts are Bitmap - I assume this has an effect on it? Can you elaborate?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI Fonts randomly disappear when deactivating others
« Reply #4 on: January 06, 2015, 10:48:05 AM »
In the olden times, I'd say check the depths - if they're all of the same material and in the same panel, then it may be something as simple as a depth layering issue where they get aggressively clumped together with the top one in a draw call- if the top one goes away they fall back to their own depths.

I thought the new system automatically fixed that with extra draw calls though.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Fonts randomly disappear when deactivating others
« Reply #5 on: January 06, 2015, 11:10:32 AM »
3.5.8 is extremely old. Please update to the latest first.

Vicas

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: NGUI Fonts randomly disappear when deactivating others
« Reply #6 on: January 08, 2015, 04:46:14 AM »
3.5.8 is extremely old. Please update to the latest first.

Yeah thing is I am not sure if I can, since due to licensing issues my company is not allowed to work in Unity4. I seem to be getting the classic "fatal error" jibberish typical when importing Unity4 stuff into an older version when importing the newest version. Though I thought that was impossible to actually get through the asset store...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Fonts randomly disappear when deactivating others
« Reply #7 on: January 08, 2015, 09:00:53 AM »
Unfortunately there isn't much I can do here. NGUI stopped supporting Unity 3 after version 3.6.0.