Answers for "how to destroy all child of a transform unity 5"

C#
1

unity destroy all children

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

unity how to destroy child

//Destroys the first child of the Parent variable
Destroy(Parent.transform.GetChild(0).gameObject);
Posted by: Guest on January-25-2022

Code answers related to "how to destroy all child of a transform unity 5"

C# Answers by Framework

Browse Popular Code Answers by Language