Answers for "Unity iterate each child"

C#
2

unity foreach child

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

unity iterate all child objects

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

C# Answers by Framework

Browse Popular Code Answers by Language