Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: neonplay on April 26, 2012, 05:00:17 AM

Title: Dynamic Table Cell Entries
Post by: neonplay 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?
 
Title: Re: Dynamic Table Cell Entries
Post by: ArenMook on April 26, 2012, 02:45:18 PM
Use NGUITools.AddChild(parent, prefab) to instantiate them.