Removing children from the Node recursively

Hi,

One basic query. I have 2 layers, lets say Layer1 and Layer2. On Layer1 I am adding Layer2 as well as some sprites. On Layer2 I am adding sprites.

Now when I call RemoveAllChildrenWithCleanup(true) on Layer1, will it remove all children from Layer2 as well. Or I have to call RemoveAllChildrenWithCleanup(true) on Layer2 as well.

Regards,
Sumedh

in your example you don’t have to call RemoveAllChildrenWithCleanup on Layer2.

Thanks Dredok!!