Parent/child gameobject scope (SOLVED)

I have a collection with a game object inside. Inside that game object is a child game object as below:

image

If I delete the parent object, I would expect the child to be deleted as well but it is not.

Assuming this is the intended behavior (which I don’t quite understand the logic of) , what is best-practice for keeping track of child game objects so they can be deleted individually before the parent is deleted?

Hey Ben,

have you tried

go.delete(true)

? Or am I missing something…

Ciao!

6 Likes

Not at all! I was the one missing something. Thanks!

I really ought to spend more time in the documentation…

4 Likes