Unity Supprimer tous les enfants
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);
}