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?

1 Answer

1

It's undefined, so you can't count on it to be any particular order.