using UnityEngine; using System.Collections; public class childObj : MonoBehaviour { void DebugRoot() { Debug.Log("----- Debug root -----"); foreach (GameObject go in Object.FindObjectsOfType(typeof(GameObject))) { if (go.transform.parent == null) { DebugDeeper(go.transform); } } } void DebugDeeper(Transform trans) { int children = trans.GetChildCount(); Debug.Log(trans.name + " has " + children); for (int child=0;child