unity 关于RectTransform的删除 for循环遍历删除
·
**unity Refresh效果
for (int i = 0; i < transform.childCount; i++)
{
if (transform.childCount!=0)
{
Destroy(transform.GetChild(i).GetComponent<RectTransform>().gameObject);
}
}
更多推荐


所有评论(0)