Im failing to understand and use the ‘onCompleted’ function after exporting my Scene using the GLTF Exporter. I want to simply call another function after the scene has been Exported. Thank you in Advance
According to the documentation you use the exporter like so;
// Instantiate a exporter
const exporter = new GLTFExporter();
// Parse the input and generate the glTF output
exporter.parse( scene, function ( gltf ) {
console.log( gltf );
downloadJSON( gltf );
}, options );
So just put you function call in the above callback.