Quantcast
Channel: Questions in topic: "pick"
Viewing all articles
Browse latest Browse all 93

Pick all gameobject with specific tag

$
0
0
Using [GameObject.FindGameObjectsWithTag][1], how can I set ALL of the gameObjects with a specific tag inactive? [1]:http://docs.unity3d.com/Documentation/ScriptReference/GameObject.FindGameObjectsWithTag.html e.g: if(Input.GetKeyDown(KeyCode.Q)) { (all gameobjects with tag "PrimaryWeapon").SetActive(false); } in C# someone can help?

Viewing all articles
Browse latest Browse all 93

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>