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?
Feb 05 '11 at 03:47 AM
Feb 06 '11 at 01:48 AM
Use a container, such as an array or the generic List container.
Feb 05 '11 at 04:17 AM
Could you give an example on how I could do that?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Feb 05 '11 at 03:47 AM
Seen: 1108 times
Last Updated: Feb 06 '11 at 01:48 AM
How do I change the text of a GUIText object through another GameObject using a variable?
How to respawn a game object after a certain amount of time.
Find and store gameObjects in a array
limit transform class localScale
copy settings from other gameobject
swap objects with instantiate
Instantiating an Object...
Reference variable in other script