Author Topic: UIGrid Disables Itself on Activation  (Read 3340 times)

Vaei

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
UIGrid Disables Itself on Activation
« on: January 27, 2014, 08:06:40 AM »
Hi,

I am having the server list all available characters by instantiating an NGUI item. These items are entered into the UIGrid, but as soon as the panel containing UIGrid is activated, UIGrid sorts it's contents then turns itself off and can't be re-enabled until next run.

I need it to sort them as they're added... How can I achieve this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIGrid Disables Itself on Activation
« Reply #1 on: January 27, 2014, 08:16:59 AM »
GetComponent<UIGrid>().Reposition()

Vaei

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UIGrid Disables Itself on Activation
« Reply #2 on: January 27, 2014, 08:24:23 AM »
Thank you! I was worried I had run into a bug, turns out as usual it's my lack of knowledge :)