Check to see if prefab has instantiated

Hello peeps,

Im instantiating a number of button prefabs on a panel and when i bring the panel into view the prefabs appear on screen (flick on). How can i check to see if they are instantiated so when i move to the panel in question the prefabs are already there?

Thanks for any help in advance.

You can control how many children your panel has with panel.transform.ChildCount()… ¿or was it panel.transform.GetChildCount()?

In any case, you can search into a loop the name of each children with transform.GetChild(int ind), where ind goes from 0 to transform.ChildCount() (or getChildCount(), sorry for not remembering, I’m not in front of my IDE :P)