unity delete all children

121

unity destroy all children -

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

Comments

Submit
0 Comments