x


how to find tags

Hi,

How do I find tags in my script?

Thank you, koramere

more ▼

asked May 21 '12 at 08:46 PM

Koramere3D gravatar image

Koramere3D
58 8 18 21

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

May 21 '12 at 08:55 PM RmurilloM
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3316
x137

asked: May 21 '12 at 08:46 PM

Seen: 303 times

Last Updated: May 21 '12 at 08:55 PM