Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: EvilDingo on September 18, 2013, 07:54:50 PM
-
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?
-
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.
-
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
-
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. :)
-
Also, I'm not using Dynamic fonts. Just a font texture.
-
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.
-
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!