Unity Eliminar a todos los niños
foreach (Transform child in transform) {
Destroy(child.gameObject);
}
CatgirlSimp
foreach (Transform child in transform) {
Destroy(child.gameObject);
}
foreach (Transform child in transform) {
child.SetParent(null);
}