List<GameObject> FindDependentGameObjects( Transform parent ) {
List<GameObject> foundGameObjects = new List<GameObject>();
foundGameObjects.Add (parent.gameObject);
foreach( Transform t in parent ) {
U9View view = t.GetComponent<U9View>();
if( !view ) {
foundGameObjects.Add( t.gameObject );
foundGameObjects.AddRange( FindDependentGameObjects(t) );
}
}
return foundGameObjects;
}