Author Topic: Flash between switching panels  (Read 5432 times)

robindelange

  • Guest
Flash between switching panels
« on: September 25, 2013, 03:01:22 AM »
Hi there,

We've used NGUI for an app we've just released. When you go to another screen we switch to another panel by a script that basically says:

NGUITools.SetActive(showUI, true);
NGUITools.SetActive(hideUI, false);

Now, during this transition you see an annoying flash, depending on the speed of the mobile device you're working with. The switching between panels is necessary because many of the UI screens use draggable panels. I think the way to go would be to use Tween scripts to let the screens ease in and out. But I haven't found any examples or explanation on this.

I hope someone can help with this problem!

Robin

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: Flash between switching panels
« Reply #1 on: September 25, 2013, 03:21:00 AM »
yeah its annoying I find it more noticeable on older devices like ipod touch 4th gen. I jsut use some sort of transition anim or wait for the next panel to load before hiding the old one. Current project I quickly fade in a blackout screen and swap the panels behind it then back to them.

robindelange

  • Guest
Re: Flash between switching panels
« Reply #2 on: September 25, 2013, 05:26:25 AM »
By waiting you mean really starting a CoRoutine and the yield for 0.2 seconds or so?

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: Flash between switching panels
« Reply #3 on: September 25, 2013, 06:28:30 AM »
I use a coroutine to wait for my blackout to fade in tho might try changing that now with 3.0  ;D

robindelange

  • Guest
Re: Flash between switching panels
« Reply #4 on: September 25, 2013, 06:40:16 AM »
Is there a way to actually wait to fade? Or do you set a value manually?

Thanks for the help by the way!

mishaps

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 65
    • View Profile
Re: Flash between switching panels
« Reply #5 on: September 25, 2013, 07:10:20 AM »
I think the tween anims fire off OnFinished events u can listen to.