Answers for "unity how to check if gameobject has child"

C#
0

unity check if child exists

Transform[] ts = GetComponentsInChildren<Transform>();
         foreach(Transform t in ts)
         {
             if(t != null)
             {
                 //do something
             }
         }
Posted by: Guest on May-10-2021

Code answers related to "unity how to check if gameobject has child"

C# Answers by Framework

Browse Popular Code Answers by Language