x


Accessing all GameObjects with a certain tag

Hi Guys,

I'm looking to access all game objects with the tag "AmbientControlled" and change a few settings on each one but I want these to be exactly the same. Iv looked around and can't seem to work it!

Can someone point me in the right direction?

Thanks!

more ▼

asked Feb 20, 2011 at 08:01 PM

alex 1 gravatar image

alex 1
89 37 27 34

You added the solution in your tags. "FindGameObjectsWithTag". What code do you have that is not working?

Feb 20, 2011 at 08:07 PM Jessy
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Try GameObject.FindGameObjectsWithTag. There is an example in the link.

more ▼

answered Feb 20, 2011 at 08:08 PM

Molix gravatar image

Molix
5.4k 40 49 97

(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x4955
x565
x248
x99

asked: Feb 20, 2011 at 08:01 PM

Seen: 1926 times

Last Updated: Feb 20, 2011 at 08:01 PM