can we have Object3D.remove() with no arguments remove an object itself?
See original GitHub issueso that we can write light.remove();
instead of light.parent.remove(light);
?
right now .remove() does not seem to be doing anything so there will be no conflict.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:20 (9 by maintainers)
Top Results From Across the Web
Object3D#remove – three.js docs
Constructor. Object3D(). The constructor takes no arguments. Properties. # .animations : AnimationClip. Array with object's animation clips.
Read more >ThreeJS: Remove object from scene - javascript - Stack Overflow
The problem is, entity is not removed from screen once loaded when Hide button is clicked. What can I do to make Hide...
Read more >How to remove the child of an Object3D in three.js - Educative.io
We can use two methods to remove the child of an Object3D class object which is present inside the three.js scene graph: The...
Read more >Entity - A-Frame
When we pause an entity, it will stop its animations and call Component.pause() on each of its components. The components decide to implement...
Read more >Set.prototype.delete() - JavaScript - MDN Web Docs - Mozilla
Because objects are compared by reference, you have to delete them by checking individual properties if you don't have a reference to the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The purpose of the method is to {disconnect, detach, unlink, unparent, remove} an object from the scene graph, without changing or destroying the object itself. Names like
destroy()
sound more like our currentdispose()
method, permanently de-allocating the object’s resources.Blender calls this operation Clear Parent. jQuery calls it .detach().
object.removeFromParent()
sounds like the best option to me.