Author Topic: Toos.AddChild with already created objects....  (Read 1355 times)


  • Guest
Toos.AddChild with already created objects....
« on: November 15, 2012, 01:37:32 PM »
Essentially I have lots of cached objects in my game.  I'd like to do the same with the UI in regards to lists.  Before, I was simply giving the list a prefab, it would go through and do the old AddChild to the grid, then toggle the reposition.  When i wanted to clear it, i would go through each child on the grid and destroy it and reposition again.

What I'd like to do is just keep a cache of child objects, retrieve one (or more) from the cache (not a problem, i have this functionality already) and add it to the grid.  AddChild seems to only instantiate prefabs.... is there another option to add a child where the child is ALREADY an instantiated object?