Author Topic: [Solved] Blank labels - Difference between my device and reviewer's device.  (Read 2608 times)

EvilDingo

  • Guest
Hello,

I'm having a strange problem with Blackberry. Has anyone seen this before or is there a common cure for this problem? First some facts:

- I've used NGUI on a different version of the same app and it works fine.
- When Unity builds the game and runs it on my Blackberry device - everything works great.
- When the reviewer runs the game on their device at Blackberry HQ, none of the labels show up. The graphics show, but no text anywhere.
- Both parties are using the same hardware and language.

How can this be?! It's a crime against nature. I can't reproduce the problem. What can cause labels to show up blank?

It's not a Z-issue because text that doesn't have anything in front also doesn't show up. Has anyone seen anything like this before?
« Last Edit: September 19, 2013, 06:32:28 PM by EvilDingo »

OnlineCop

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Re: Blank labels - Difference between my device and reviewer's device.
« Reply #1 on: September 18, 2013, 09:09:28 PM »
I've seen it a few times with dynamic fonts in 2.7.0 and earlier. Something we do to "hack" this: create a UILabel, position it very close to the camera, and fill it with a space (so it's "empty" without actually having 0 character length). Then everything starts working again.

It's a work-around, but it works, so we've implemented it in places that this happens for us.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Blank labels - Difference between my device and reviewer's device.
« Reply #2 on: September 18, 2013, 09:50:47 PM »
I would say Z-issue as the first thing, but since you say nothing should be in front of it, then that can't be it.

I've heard rumors about Unity being weird about refreshing the font files properly some times, but I haven't seen it in practice.

Some times changing the content of a label will jump start the font importer, so I suggest you try doing that run time. Obviously hard to do if it's an inconsistent bug. :S

EvilDingo

  • Guest
Re: Blank labels - Difference between my device and reviewer's device.
« Reply #3 on: September 19, 2013, 01:33:10 AM »
Thanks for that suggestion. I'm willing to try anything now. How close is "very close" to the camera and how many spaces usually? The entire thing? Normally, I could just test this and figure it out for myself, but it works fine on my device so I'm flying blind. :)

EvilDingo

  • Guest
Re: Blank labels - Difference between my device and reviewer's device.
« Reply #4 on: September 19, 2013, 01:40:33 AM »
Also, I'm not using Dynamic fonts. Just a font texture.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Blank labels - Difference between my device and reviewer's device.
« Reply #5 on: September 19, 2013, 04:13:09 PM »
If you're not using dynamic fonts, a single atlas, and you're using 2.7.0 with the panels set to "depth sort", then everything should work exactly as you expect it to.

EvilDingo

  • Guest
Re: Blank labels - Difference between my device and reviewer's device.
« Reply #6 on: September 19, 2013, 06:32:04 PM »
This was actually a texture compression issue and not a NGUI problem. Blackberry supports some texture compression that isn't compatible with all chipsets. It turned out that my settings from my iOS version carried over and weren't automatically changed like they would be on Android. Which, coincidentally, worked on my chipset and not the reviewer's. Heads up to anyone in the future that has this problem!