Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity delete all children

 foreach (Transform child in transform) {
     Destroy(child.gameObject);
 }
 
PREVIOUS NEXT
Tagged: #unity #delete #children
ADD COMMENT
Topic
Name
9+7 =