Answers for "unity check if child exists"

C#
1

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

C# Answers by Framework

Browse Popular Code Answers by Language