- Home /
Question by
Koramere3D · May 21, 2012 at 08:46 PM ·
tags
how to find tags
Hi,
How do I find tags in my script?
Thank you, koramere
Comment
You mean, how to find objects with a tag? If so, you can use FindObjectWithTag and create an array of the objects you've tagged: GameObject[] yourGameObject = GameObject.FindObjectWithTag("TheTag");
I suggest you take a look at this: http://unity3d.com/support/documentation/ScriptReference/GameObject.FindGameObjectsWithTag.html
Your answer
Follow this Question
Related Questions
Make rolling ball player spin script 1 Answer
Enabling/Disabling Multiple Tagged objects 1 Answer
Creating tags via code 3 Answers
Same objects doing the same thing 0 Answers