Answers for "unity delete all children"

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 "unity delete all children"

C# Answers by Framework

Browse Popular Code Answers by Language