Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: tinyutopia on November 01, 2012, 10:11:58 AM

Title: hide multiple UIPanels
Post by: tinyutopia on November 01, 2012, 10:11:58 AM
I'm using animations to swap out 8 different UIPanels that include draggable windows. Everything is working fine, but playback is starting to slow and I'm worried that when I try to play everything on a phone that performance will be bad.

Is there any way that I can disable UIPanels in script when they are not appearing on screen? In other words, after they are animated off screen I would like to disable them from being updated so they will not tax the CPU.
Title: Re: hide multiple UIPanels
Post by: JRoch on November 01, 2012, 12:50:47 PM
NGUITools.SetActive() is what you're looking for.