Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

instantiate object inside of object Unity

var newObj = GameObject.Instantiate(somePrefabReference);
newObj.transform.parent = GameObject.Find("EmptyGameObject").transform;
Source by forum.unity.com #
 
PREVIOUS NEXT
Tagged: #instantiate #object #object #Unity
ADD COMMENT
Topic
Name
3+6 =