Answers for "destroy all objects under parent unity c#"

C#
15

unity delete all children

foreach (Transform child in transform) {
     Destroy(child.gameObject);
 }
Posted by: Guest on June-06-2020
2

destroy all objects under parent unity c#

foreach (Transform child in TextHolder.transform) {     GameObject.Destroy(child.gameObject); }
Posted by: Guest on September-03-2020

Code answers related to "destroy all objects under parent unity c#"

C# Answers by Framework

Browse Popular Code Answers by Language