Jump to content

PIXI loader - resource already exists


kaylogics
 Share

Recommended Posts

Working on porting code from an old angular app to vue and am very new to PIXI.

Upgraded PIXI to latest version. Issue I am facing is, the page renders fine the first time but when I go away from the page and come back I see this error in console:

Q9yhfe.jpg

 

I am using the loader as so:

const PIXIloader = new PIXI.Loader()

I tried using PIXIloader.reset() before calling the PIXIloader.add() but doesnt seem to work and when I console.log the PIXIloader  I still see the resources in the loader.

If I manually reload the page it works fine.

 

Link to comment
Share on other sites

According to https://github.com/englercj/resource-loader/blob/master/src/Loader.js#L447 , reset() removes resources from loader.

https://github.com/englercj/resource-loader/blob/master/src/Loader.js#L371 cant be triggered in your case.

In this particular case, I dont know what can go wrong :(Please look at your code one more time or provide a demo.

Congrats with first post!

Link to comment
Share on other sites

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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