본문 바로가기

유니티

[ 유니티 ] 자식 오브젝트 삭제하기

   foreach(Transform chlid in musicList)
        {
            Destroy(chlid.gameObject);
        }