how i can pass over all the sons of an object using a for?
thank you all.
how i can pass over all the sons of an object using a for?
thank you all.
Just use a foreach loop like this:
foreach(Transform child in someObject.transform)
{
// do something with "child"
}