Reputation: 531
I attached a child to three mesh with this function:
.add()
How can I delete the child from mesh with a function?
Upvotes: 0
Views: 584
Reputation: 12642
Mesh
extends Object3D
and you can use:
.remove()
to remove a child.
Documentation at http://threejs.org/docs/#Reference/Core/Object3D
Upvotes: 1