Jump to content

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


Recommended Posts

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');


Link to comment
Share on other sites

Good idea! I recommend to patch that part of texture, like `Object.defineProperties(PIXI.Texture, { frame: { set: { function ... " so it doesnt produce error but adds a warning somewhere, with texture name from cache or whatever.

I have many hacks like that when i give my games to designers :)

Link to comment
Share on other sites

  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...