- Home /
Tracking instantiated objects
How do you track instantiated objects?
Suppose you have a bunch of instantiated objects, call each one B
. Suppose B
should do something when it hits A
.
How do you know which one of the B's hit A?
Answer by Justin Warner · Dec 27, 2010 at 04:00 AM
for(var i = 0 ; i < OBJECT_AMOUNT ;i++ )
{
//b[i]= --put instantiate script here--
}
So b[i] = to that object... If that makes sense?
so would you be able to evaluate the instantiated object as b[i] later on?
What do you mean evaluate? Like, b[i] would be b[i], i is the number that it it is, it starts at 0. Don't know how much of arrays you know, sorry.
Your answer
![](https://koobas.hobune.stream/wayback/20220613092633im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Instantiating Multiple Prefabs at Runtime 0 Answers
Make a game object in a scene into a prefab with script 1 Answer
snapping objects at runtime 2 Answers
Adding a NetworkView component at runtime 3 Answers
Help needed with instantiate 0 Answers