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
  • #40715
    avaze
    Customer

    I am trying to programmatically use the “appendScene” function to add several (say 10) glTFs to my scene. Like so:


    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 don’t load, I’m printing “Error” to the console.
    This works fine.
    But is there a way to print which glTFs, in particular, are missing/erroneous?

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