Answers for "c# check if object has child"

C#
1

c# check if object has child

// I think the 'childCount' starts at 0, so if you have one child, it's
// 'childCount' value will be 0. If you have two, the value is 1. Etc.
if (transform.childCount >= 0)
 {
   // object has children!
 }
Posted by: Guest on July-30-2021

Code answers related to "c# check if object has child"

C# Answers by Framework

Browse Popular Code Answers by Language