**unity Refresh效果

        for (int i = 0; i < transform.childCount; i++)
        {
            if (transform.childCount!=0)
            {
                Destroy(transform.GetChild(i).GetComponent<RectTransform>().gameObject);
            }
        }  
     

更多推荐