Author Topic: UITable  (Read 33377 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,151
  • Toronto, Canada
    • View Profile
Re: UITable
« Reply #30 on: September 06, 2015, 05:53:26 PM »
It deactivates itself after executing, it's always been like that. Check UITable.Start().

BAIZOR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: UITable
« Reply #31 on: April 05, 2018, 09:29:33 AM »
I had a problem with Table.

My case:
I have a prefab with UITable onboard (in children object)
Need to relocate the prefab on initialization. My components on the prefab do this in Start method.
But. After reposition the transform, the UITable is going crazy.
I tried to call Reposition, it doesn't change anything.

Finally I found a solution:
  1.         var table = GetComponentInChildren<UITable>();
  2.         if (table != null)
  3.         {
  4.             table.Reposition();
  5.             table.enabled = false;
  6.         }

It's very important to disable Table after Reposition.
And very important execute all the code before reposition the prefab.

Hope it could help somebody!
Cheers! :)