Author Topic: UIGrid 'Child' Access by post-sort index or post-sort X,Y ?  (Read 5059 times)

RobBrooks

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 19
    • View Profile
UIGrid 'Child' Access by post-sort index or post-sort X,Y ?
« on: February 05, 2015, 10:36:21 AM »
I think the subject really says it all.

Do I need to roll this one myself, or have I overlooked the feature description?

Many thanks.

Edit - I ended up getting around this by pre-sorting my objects by alpha prior to parenting them to the UIGrid. I noticed there is a helper function called AddChild in UIGrid's documentation which offers a sorting parameter which I guess would potentially offer me the same facility with less effort, but as the version of NGUI I'm using doesn't appear to have that included, I'm loath to update due to certain risk factors - big project, late in the cycle, much potential for 'fun'.

« Last Edit: February 05, 2015, 11:24:13 AM by RobBrooks »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIGrid 'Child' Access by post-sort index or post-sort X,Y ?
« Reply #1 on: February 05, 2015, 01:06:13 PM »
UIGrid.GetChildList() gives you the sorted list.

RobBrooks

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 19
    • View Profile
Re: UIGrid 'Child' Access by post-sort index or post-sort X,Y ?
« Reply #2 on: February 05, 2015, 01:14:32 PM »
That's good to know for next time ArenMook.

Thanks for the reply.