Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: sampenguin on December 19, 2013, 12:15:26 PM
-
Hi-
First off, NGUI is great in general, been loving using it, thanks for making it.
I'm having some problems with different behavior between editor and mobile device (Android 4.1 on a Samsung Galaxy S3).
Problem 1: I am Tweening position to slide some panels in and out. Nothing fancy about the panels, a few plain solid color sprite widgets with dynamic font labels, some buttons, and an input field. In editor it works fine, they come and go exactly as designed. On device, they play forward correctly, but when they tween out, it seems the underlying panel doesn't render correctly again... some of the elements will be visible, but others are not, only the camera fill color. The underlying panel does not change state, I just slide another panel over the top of it, and back out again. I can poke the screen where a button should be to bring the overlying panel back in, and then the underlying panel renders correctly again briefly while the top panel slides back in.
Any ideas of things I could look at for this? would having same Z-axis values matter if I have the panel depths all set differently? I have all the tweens set to reset on play as well. (originally I was trying alpha tweens with same buggy behavior, but thought maybe alpha was handled weird so tried just positional tweens, same result)
Problem 2: Intermittently, all the text on the screen goes garbly and then resets itself. I'm using a dynamic font for all my labels and input fields. This also only happens on device and never in editor.
-
What version of NGUI are you using? Are all your panels using unique depth values? (they should)
-
Looks like I'm on 3.0.6 f1 according to the readme in my project.
Yes all the panels have non-conflicting depth values.
Couple of other things I've noticed as I'm playing around trying things to find a workaround:
- If I find the UIInput in one of the problem panels by blindly tapping so that it's got keyboard focus, the whole panel renders correctly again. This implies that maybe the underlying panels are needing to be marked dirty or otherwise signaled to refresh/render again if a completely occluding panel goes away? Not sure how NGUI handles that internally.
- The screen flickers every time I activate/deactivate an NGUI object. Example is I have a nested delete button that appears when you select an item in a ScrollView grid, accomplished via activate/deactivate. When I select a different button, the whole panel flickers off for a frame or two and comes back.
- Unrelated to my issue but another bug: If the status bar is left on in Android (via player settings), the aspect ratio is adjusted slightly to compensate... which UIRoot seems to handle visually OK but it seems that the collision detection on button colliders gets a bit off, as if they were still at the unadjusted positions. Fairly frustrating on smaller screens.
-
Starting to think this may have to do with ScrollViews and Grids...
-
Update: upgrading to latest on asset store (3.0.7f3) fixed both the panel rendering issues and the flickering issues.
I should know better to have done that first :-[ Sorry for false alarms, thanks for responding quickly!