Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: MoProductions on June 01, 2016, 03:22:23 PM

Title: NGUI elements stretching/duplicating during screen rotation
Post by: MoProductions on June 01, 2016, 03:22:23 PM
I've been working on a full NGUI based project and something odd is happening.  During the screen rotation during an orientation change, our elements are rendering very strangely.  They'll be stretched, duplicated, shunk, all sort of weird stuff but it only happens during the actual rotation.  Every goes back to normal once that's done.  This doesn't happen on other NGUI projects we've used.  Is there anything that could be causing this?   I've added delays in the code of several seconds to make sure that none of our code is being called until way after the rotation is done, so I believe it's something in the way things we're set up.  BTW our elements are UITables and UIGrids filled with squares.
Thanks!
-Mo
Title: Re: NGUI elements stretching/duplicating during screen rotation
Post by: ArenMook on June 01, 2016, 10:18:54 PM
Not sure about this one...
Title: Re: NGUI elements stretching/duplicating during screen rotation
Post by: MoProductions on June 02, 2016, 07:55:45 AM
We're still investigating, trying to figure out what's up with this particular scene.  I'll let ya know what I find out.
Title: Re: NGUI elements stretching/duplicating during screen rotation
Post by: MoProductions on June 03, 2016, 12:32:21 PM
OK we've done some more investigating and it appears that it's not necessarily something we did in our game play screen, the weird artifacts we see during screen rotations happen on every screen, they're just more pronounced on the game play screen and is much more noticeable.  I'm attaching some screen shots to show what I mean, but keep in mind that I changed the sprites around and removed some stuff to hide exactly what we're up to (NDA and all). 

This is what our game (with changed sprites) looks like normally:
(http://i.imgur.com/95JNmE6.png)

However, during transitions things get jumbled.  These are a couple of screen grabs that show what happens during the transition going to both landscape and portrait:
(http://i.imgur.com/6ZQoZXA.png)

(http://i.imgur.com/0TqcCL9.png)

Now remember that this kind of wonkyness is happening in every screen, it's just not noticeable except on our main game screen. And it's not just our game either, I tried the "screencap during rotation" move on the included "Example 0 - Control Widgets" NGUI example scene.  Here's how it looks:
(http://i.imgur.com/neAt4kF.png)

Still, even though that's how it looked it when being screen capped you couldn't notice it during the actual transition.  This is what's happening to our game play screen but with noticeable effects.

Is there any way to solve or deal with this? 
Thanks!!!-Mike

Title: Re: NGUI elements stretching/duplicating during screen rotation
Post by: ArenMook on June 04, 2016, 02:40:46 PM
I think this would be a question/bug report for Unity. NGUI simply creates meshes that get drawn on the screen.