I am currently working on a THREE.js project that involves importing a gltf object:
loader.load("myObj.gltf",
function(gltf){
scene.add(gltf.scene);
},
undefined,
function(error){alert(error);});
Afterwards, I need to clone the object:
let newObj = oldObj.clone();
To optimize memory usage, I have to dispose of the cloned object without affecting the original. I attempted to use dispose(), but it was not successful. Is there a different method I should use?