Jump to content

Remove Asset? (Panda 2)


Ninjadoodle
 Share

Recommended Posts

@Ninjadoodle

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:

5a5527b4e3e97_ScreenShot2018-01-09at22_35_25.png.be3671feda6fdf42128d1e7fd317275f.png

"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)

5a55280365d2a_ScreenShot2018-01-09at22_37_14.png.1c4e65bd64f11e3bd02d1997d6fc2d21.png

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.

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