How can i insantiate a GameObject and set his parent?
GameObject yourInstantiatedObject = Instantiate(yourObject, newPosition, newRotation) as GameObject;
yourInstantiatedObject.transform.parent = transformOfObjectsParent;
How can i insantiate a GameObject and set his parent?
GameObject yourInstantiatedObject = Instantiate(yourObject, newPosition, newRotation) as GameObject;
yourInstantiatedObject.transform.parent = transformOfObjectsParent;