Answers for "unity foreach all child of gameobject"

C#
5

unity foreach child

foreach(Transform child in transform)
{
	print(child.gameObject.name)
}
Posted by: Guest on April-22-2021
1

unity iterate all child objects

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

Code answers related to "unity foreach all child of gameobject"

C# Answers by Framework

Browse Popular Code Answers by Language