How to dispose large trees of objects?

Say I have a group in a scene which contains many other groups, geometries and materials. Is there a way to dispose of the entire parent group? Do I have to call .dispose() on every material and geometry contained within the group - or is there a way to dispose the entire group and it’s children at the same time?

1 Like

No, you have to traverse through the group and dispose the respective materials, geometries and textures. Use Object3d.traverse() for this.

2 Likes