Answers for "how to loop through all children gameobjects unity"

C#
4

unity cycle children

for(int i = 0; i < gameobject.transform.GetChildCount(); i++)
{
   Transform Children = gameobject.transform.GetChild(i);
}
Posted by: Guest on March-23-2020
0

unity iterate all child objects

foreach(Transform child in transform)
{
    Something(child.gameObject);
}
Posted by: Guest on March-25-2021

Code answers related to "how to loop through all children gameobjects unity"

C# Answers by Framework

Browse Popular Code Answers by Language