- Home /
 
question about how - precisely - looking through children works random or alphabetical.
let's say the transform has multiple children named different ways like
"a bouncing ball" "big cube" "colors" "dinosaur"
if I go through it's children like that:
for(var child:Transform in transform){
 child(...)
}
 
               
               does this pick transform's children at random? or alphabetically?
or some other way?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Eric5h5 · Oct 25, 2010 at 05:19 AM
It's undefined, so you can't count on it to be any particular order.
Your answer
 
             Follow this Question
Related Questions
Dynamic jump? 1 Answer
How Should I Get a List of Child Objects 2 Answers
Manipulating booleans from parent to child (C#) 2 Answers
GetComponentsInChildren problem 1 Answer
Getting transform info after branch 1 Answer