x


Multiple Targets

Alright so I'm using this:

var target : transform;

and I can obviously only drag one GameObject to the target. So how would I make it so I can have multiple GameObject's as the target?

more ▼

asked Feb 05 '11 at 03:47 AM

RSunity gravatar image

RSunity
74 8 8 13

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Use a container, such as an array or the generic List container.

more ▼

answered Feb 05 '11 at 04:17 AM

Jesse Anders gravatar image

Jesse Anders
7.3k 7 17 48

Could you give an example on how I could do that?

Feb 05 '11 at 04:47 AM RSunity
(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:

x3465
x2097
x313
x294
x16

asked: Feb 05 '11 at 03:47 AM

Seen: 1108 times

Last Updated: Feb 06 '11 at 01:48 AM