Unity Destroy All Children

60

unity destroy all children -

while (transform.childCount > 0) {
    DestroyImmediate(transform.GetChild(0).gameObject);
}

Comments

Submit
0 Comments