private void Dump(Collider col) { Debug.Log(col.ToString() + " " + LayerMask.LayerToName(col.gameObject.layer).ToString()); Debug.Log("========= NORMAL ==========="); foreach(UnityEngine.Component com in col.GetComponents(typeof(UnityEngine.Component)) ) { Debug.Log(com.ToString()); } Debug.Log("========= PARENT ==========="); foreach (UnityEngine.Component com in col.GetComponentsInParent(typeof(UnityEngine.Component))) { Debug.Log(com.ToString()); } Debug.Log("========= CHILDREN ==========="); foreach (UnityEngine.Component com in col.GetComponentsInChildren(typeof(UnityEngine.Component))) { Debug.Log(com.ToString()); } }