Version: 5.5
public int childCount ;

説明

Transform の持つ子の数

using UnityEngine;
using System.Collections;

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