Quantcast
Channel: Questions in topic: "clone"
Viewing all articles
Browse latest Browse all 508

GetComponent of ALL clones?

$
0
0
How do I get the component of all the clones of my object? When I use `box = GameObject.Find("Box").GetComponents();` It only gets the component of the first box he somewhat finds, but ignores the other clones of the boxes. I also couldn't just use a static variable, since I have another script that only needs to get one component, and when I get the component of the script, its static variables doesn't work for some reason. Thanks! Simple question, but couldn't find it at all in Google or in Unity Answers.

Viewing all articles
Browse latest Browse all 508

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>