Author Topic: UIPanel static  (Read 2088 times)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
UIPanel static
« on: November 14, 2012, 08:59:49 AM »
Hi !

I've never used so far the static boolean on a UIPanel, what is it used for exactly ?
And if I have a UIPanel that does not move, but the children inside does, can I say the panel is static ?

Thanks ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel static
« Reply #1 on: November 14, 2012, 11:57:03 AM »
It's used to improve performance if you know that the widgets managed by your panel will never change in any way (no color, movement/rotation/scaling changes).

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: UIPanel static
« Reply #2 on: November 14, 2012, 01:05:46 PM »
Cool, thanks.

Too bad almost all my panels are moving.