Francesco1984
Francesco1984

Reputation: 531

Three js how to delete a child

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

Answers (1)

gaitat
gaitat

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

Related Questions