feng20068

  • 15 de Sep de 2015
  • Se unió 28 de Nov de 2014
  • hi,nate!
    I want to remove the texture after the sprine has been removed,but it dosen't work.

    I logout the CachedTextureInfo in lua before remove it

    print("this leftSoldiers getReferenceCount",v.sprite:getReferenceCount()) 

    It show that the spine's ReferenceCount is 1.It's right.

    I logout the CachedTextureInfo in lua after remove the spine 1 second.

    print(cc.Director:getInstance():getTextureCache():getCachedTextureInfo())

    It show that the spine's texture ReferenceCount is 2!!!

    so,how can I release the texture.

    I had add a breakpoint in

    void spAtlas_dispose (spAtlas* self) {
       spAtlasRegion* region, *nextRegion;
       spAtlasPage* page = self->pages;
       while (page) {
          spAtlasPage* nextPage = page->next;
          spAtlasPage_dispose(page);
          page = nextPage;
       }
    
       region = self->regions;
       while (region) {
          nextRegion = region->next;
          spAtlasRegion_dispose(region);
          region = nextRegion;
       }
    
       FREE(self);
    }
    

    But it never come here!

  • the animation attack3 can be found in json file, but play it in code use the method "addAnimation" , console log that
    "Spine: Animation not found: attack3".
    I have upload the spine source file


    anybody can help me?