Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Texture Pack loading / unloading — Gideros Forum

Texture Pack loading / unloading

Tom2012Tom2012 Guru
edited September 2012 in General questions
Hello :-)

In Gideros, if I use SceneManager, are texturePacks removed from memory as the program moves from scene to scene, or do I need to tell it to 'unload'?

Thanks

Tom

Comments

  • hgvyas123hgvyas123 Guru
    Accepted Answer
    that depends

    if your code is like
    myScene = Core.class(Sprite)
     
    function myScene:init()
    	local myRunnerPack = TexturePack.new("gfx/normal.txt", "gfx/normal.png")
    .............
    .............
    end
    it will get unload automatically but if your code looks like this
    myScene = Core.class(Sprite)
     
    local myRunnerPack = TexturePack.new("gfx/normal.txt", "gfx/normal.png")
    function myScene:init()
    	.............
    .............
    it will not get unload it may also very depending upon the global and might be some other things

    :)

    Likes: Tom2012

    +1 -1 (+1 / -0 )Share on Facebook
  • Hello hgvyas123

    Thanks for the help. :-)
Sign In or Register to comment.