Instantiate GameObject independent of Parent

Hi , I have a array with 30 Gameobjects which most be instantiate on Scene .
I tried some scripts to make rotation of child independent of Parent .

But dosent work and still get rotation from parent.
Now i think the solution is if i could get rotation of each Gameobject on instantiate then problem will be solved .
How can i get rotation of each gameobject on instantiate ?

    public GameObject[] wplist;

        GameObject gh3 = Instantiate (wplist[gcd], GP2.position, transform.rotation) as GameObject ;

Use Quaternion.Identity instead of Transform.rotation.

Thank you , but i need rotation of each Prefab !

Instantiate using the rotation of the prefab :

GameObject gh3 = Instantiate (wplist[gcd], GP2.position, wplist[gcd].transform.rotation) as GameObject;
1 Like

thank you perfect !