How i can find all gameObject with a certian tag in the scene and store them in a array?
May 21 '10 at 10:17 PM
GameObject objects = GameObject.FindGameObjectsWithTag("myTag");
Note: Code is C#
May 21 '10 at 10:23 PM
var objects : GameObject;
objects = GameObject.FindGameObjectsWithTag("Tag");
Mar 10 at 07:17 PM
Mar 10 at 07:00 PM
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: May 21 '10 at 10:17 PM
Seen: 3490 times
Last Updated: Mar 10 at 07:17 PM
How do I create an array for multiple targets?
for loop error
Can't destroy Game Object in Array
Access a String array in one script from another script
GameObject turns into Object in Array
How can I instantiate a GameObject directly into an array?
Array with Gameobjects code
Array of GameObjects