Author Topic: Dynamic Table Cell Entries  (Read 3774 times)

neonplay

  • Guest
Dynamic Table Cell Entries
« on: April 26, 2012, 05:00:17 AM »
I am trying to populate a Table with a number of game objects from data received at run time.

So if the user has 3 items to display..
1. I want to instantiate 3 prefabs
2. add them to the Table
3. call Reposition to align all the objects

BUT when the prefabs are instantiated they are scaled to be enormous! Does any one know what I am doing wrong?
 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic Table Cell Entries
« Reply #1 on: April 26, 2012, 02:45:18 PM »
Use NGUITools.AddChild(parent, prefab) to instantiate them.