Quantcast
Channel: Answers by "Mortoc"
Viewing all articles
Browse latest Browse all 73

Answer by Mortoc

$
0
0
Bug in your code. You probably want this: void Start () { GameObject newobj = new GameObject("Testing"); newobj.transform.parent = transform; // this transform, not the parent GameObject.Destroy(gameObject, 2); }

Viewing all articles
Browse latest Browse all 73

Trending Articles