Answers for "unity destroy all children and grandchildren"

C#
1

unity destroy all children

while (transform.childCount > 0) {
    DestroyImmediate(transform.GetChild(0).gameObject);
}
Posted by: Guest on March-30-2022

Code answers related to "unity destroy all children and grandchildren"

C# Answers by Framework

Browse Popular Code Answers by Language