When attempting to remove my 3DObject created with three.js using the Id, it doesn't work. However, when using the Name, it works perfectly. Is there a mistake in my approach?
scene.remove(scene.getObjectByName("objectname")); //successfully removes by Name
scene.remove(scene.getObjectById(objectID)); //unsuccessful attempt at removal by Id