- Код: Выделить всё
Transform[] children = gameObject.GetComponentsInChildren( typeof( Transform ) ) as Transform[];
if( children != null ){
Debug.Log( "transform.childCount = " + transform.childCount );
}
else Debug.Log( "children is NULL" );
ан не выходит?