We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Error handling of appendScene function

Home Forums Programming Error handling of appendScene function

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #40719
    avaze
    Customer

    I have programmatically implemented “appendScene” function in visual_logic.js to append several (say 10) glTFs. Like so:

    var arr[] = {one.gltf, two.gltf,..., ten.gltf};
    for(var i=0; i<10;i++){
    appendScene(arr, arr, false, false, function() {}, function() {}, function() {console.log("Error"});
    }

    If some glTFs are missing/erroneous, I am printing “Error” in the console. This works fine. But is there a way to print which of the glTFs is missing/erroneous?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.