Jump to content

Remove Asset? (Panda 2)


Recommended Posts


That's exactly how it works, though i just figured that it's not working with atlas files. Fixed it and pushed changes to dev branch!

Update your project's current engine with dev version by pressing the "Update" button (Alt+Shift+Close) and then click on "Yes" button with Shift-key pressed down. Let me know if it's now working.
You can check from console what textures are in the memory by typing "game.BaseTexture.cache" and "game.Texture.cache"

For example, with one atlas file loaded it would look like this:


"game.BaseTexture.cache" contains the atlas image file and "game.Texture.cache" contains all frames from the atlas. After removing the atlas from memory it should look like this (if there is no other assets loaded)


Also added example to Playground: https://www.panda2.io/playground#core-removeAsset

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.

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