- Home /
GameObject.Find() Question
Hello guys, just to get this out there i don't need code or even directions on how to use it. But I need to know the back-end of this function. What happens when there are more then one Object in the scene with the same name? Does it pick the first one it finds? Or how does it choose which one to get?
Thanks.
Answer by Eric5h5 · Nov 18, 2012 at 11:43 PM
It's undefined. It does pick the first one it finds, but how that's determined exactly isn't something that can be relied on. If you have more than one object with the same name and you need defined behavior, you will have to come up with your own system.
Your answer
Follow this Question
Related Questions
gameobject.find custom class 0 Answers
Finding object with transform 1 Answer
GameObject.Find, When it is Called? 1 Answer
Finding GameObjects within a radius? 2 Answers
Alternatives to GameObject.Find(); 1 Answer