destroy child in another object c# code example
Example: destroy all objects under parent unity c#
foreach (Transform child in TextHolder.transform) { GameObject.Destroy(child.gameObject); }
foreach (Transform child in TextHolder.transform) { GameObject.Destroy(child.gameObject); }