[LITE] How to remove a TransformNode?

How can I remove a TransformNode hierarchy in Babylon Lite using only the public API? removeFromScene() accepts only Mesh, and collectMeshes() is internal.

const root = createTransformNode("root");

addToScene(scene, root);

removeFromScene(scene,  root) // Argument of type 'SceneNode' is not assignable to parameter of type 'Mesh'.

There is currently no public API for removing a TransformNode

We are still discussing internally the implementation of removeFromScene. I hope to get it implemented this week.

CC @ryantrem - we need to work on removeFromScene

@ryantrem and @RaananW any update on this one ? it might be already in but did not read all the PRs so far :slight_smile:

It was merged today :slight_smile: