Destroy questions

Hello all!

I have a question about Destroy: I have an object with 100+ children and I want to delete all of them when the player dies… I used Destroy the parent object and, apparently, all the children are gone… But I don’t sure if this is the best way to do this or if this can affect performance leaving the references to the children (memory leak).

Anyway… English isn’t my main language, so be a little patient (and please correct me if a I do a mistake, I want to improve my english :p) …Thanks for the patience!

Well yeah destroy destroys parent and all the children. Makes sense. Why would it leave memory leaks though? Garbage collector deals with that.

Ohhh… So the Unity has an Garbage Collector after all… I usually program in C/C++ so sometimes I forget about that.

Thanks for the reply!