Author Topic: hide multiple UIPanels  (Read 1671 times)

tinyutopia

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
hide multiple UIPanels
« 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.

JRoch

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: hide multiple UIPanels
« Reply #1 on: November 01, 2012, 12:50:47 PM »
NGUITools.SetActive() is what you're looking for.