how to clear an objects parent unity 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); }