Replies: 1 comment
-
Right now it looks like we can't do that, we simply pixijs/packages/assets/src/loader/Loader.ts Line 207 in 0e875b5 If you want PixiJS to throw a detailed error class when loading a file fails (change this line into something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. How can I detect which file failed to load? Something from your examples.
import { Assets } from 'pixi.js';
Assets.addBundle('animals', {
bunny: 'missingFile.png',
chicken: 'chicken.png',
thumper: 'thumper.png',
});
Assets.loadBundle('animals').then(t=>{
}).catch(error=>{
// How can I know the missing file name?
});
Beta Was this translation helpful? Give feedback.
All reactions