Hi All,
I’m facing an issue. On getting error while loading an image texture, would like to print the source of the image getting failed to render. Please find the below code snippet.
this.tag(‘Image’).on(‘txError’, () => {
console.log('Image failed to load: ’ + this.tag(‘Image’).src);
// patching fallback image
});
But, I could see that the statement 'Image failed to load: ’ is getting printed around 6-7 times while trying to render a single image.
Why this event ‘txError’ is getting called so many times?
Please someone help me to understand this behavior of this event.
Thank you.