Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3980

Texture Error: frame does not fit inside the base Texture dimensions

$
0
0

Hi there,

I want to catch the error of the mismatch of sprite sheet and console out the filename with problem.

I found this article(https://github.com/pixijs/pixi.js/issues/4599) which seems fulfill my need, 

but I follow the way shows in fiddles, and it doesn't work, onError is not triggered on 'Texture Error: frame does not fit inside the base Texture dimensions'.

Did I miss something?

PIXI.loader.onError.add(function(error, loader, resource)
{
	console.log('catch error');
});



 


Viewing all articles
Browse latest Browse all 3980


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>