Author Topic: Run reposition method in editor for Table?  (Read 4374 times)

iverelo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Run reposition method in editor for Table?
« on: January 22, 2014, 12:58:29 PM »
I created a table and added children but they are all on top of each other in the editor.  When I run the scene everything appears fine as the elements of the table are positioned correctly.  I am curious if there is a way to have the Table's reposition method run in the editor so the elements are spaced out like they will be when the scene is run.

Thanks for the help!

sintua

  • Jr. Member
  • **
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 63
    • View Profile
Re: Run reposition method in editor for Table?
« Reply #1 on: January 22, 2014, 12:59:23 PM »
Right click on UITable/grid component in the inspector, select execute. it runs the code once and sorts them as it would on play!

iverelo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Run reposition method in editor for Table?
« Reply #2 on: January 22, 2014, 01:12:48 PM »
Wow awesome!  Exactly what I need thanks!