Quantcast
Channel: Questions in topic: "tagging"
Viewing all articles
Browse latest Browse all 120

Set a Tag Multiple GameObject[]

$
0
0
How can i set a tag multiple GameObject[] i tried this but its not work. public GameObject[] randomSpawnes; void SetTag(string tag ){ GameObject[] randomSpawnes = GameObject.FindGameObjectsWithTag (tag); foreach (GameObject target in randomSpawnes) { target.gameObject.tag ="BlaBla"; } }

Viewing all articles
Browse latest Browse all 120

Trending Articles