- Home /
Question by
DeathbyDomination · Aug 21, 2017 at 10:06 AM ·
instantiatescript.parent
Instantiate object as child of scripted objects parent
Is there a way for me to instantiate a object as a child of the scripted objects parent? It would make this much easier for me. Please and thank you
Comment
Best Answer
Answer by NorthStar79 · Aug 21, 2017 at 10:41 AM
you can try something like this
GameObject go = Instantiate(YourGameObject,transformPosition,Quartanion.identity);
go.transform.parent = YourParentObject;
note that this is a pseudo code. so don't even try to copy paste it :)