[SOLVED] How to make to clone an object and make it parent of the transform?

Hi,

for (int i = minClones; i < maxClones; i++)
        {

            Instantiate(master, RandomPosition(), Quaternion.identity);

        }

master is a prefab. this script is attached to a empty;

how can i make this instantiated object, a child of the empty????

ps: ive whatched other similar posts, but none of them seams to help me.

thanks

Just set the transform's parent property to the game object, it's really easy.

for (int i = minClones; i < maxClones; i++)
{
     GameObject go = Instantiate(master, RandomPosition(), Quaternion.identity) as GameObject;
     go.transform.parent = transform;
}