Jump to content

A question regarding Assets.load


Reilaen
 Share

Recommended Posts

Hi everyone,

I am a little confused about Assets.load and hope somebody can help me out.

In the PixiJS Documentation, it says that Assets.load will never load something more than once.

But when I use Asset.load('http://example.com/example.webp') twice or more, I get the following messages per load:

BaseTexture added to the cache with an id [http://example.com/example.webp] that already had an entry
Texture added to the cache with an id [http://example.com/example.webp] that already had an entry

So it seems to me like Assets.load loads and caches the image on every call, which contradicts what the documentation says.
So I am wondering if it is a problem in my code, or I am misunderstanding what the documentation really means.

Edited by Reilaen
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...