Version: 2017.3
public int childCount ;

説明

Transform の持つ子の数

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { print(transform.childCount); } }