Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach (Transform t in rootObj.GetComponentsInChildren<Transform>())
- {
- MonoBehaviour[] scripts = t.GetComponents<MonoBehaviour>();
- Debug.Log("Child Obj: "+t.name+" ("+scripts.Length+" scripts:");
- foreach (MonoBehaviour script in scripts)
- {
- Debug.Log(" "+script);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment