charlie_says Posted August 7, 2018 Share Posted August 7, 2018 Hi, I've got a setup where I create an empty sprite, and then later add a texture. this.path = game.make.sprite(0,0); this.addChild(this.path); //... later this.path.loadTexture('frame'); This all works fine, but, I would now like to 'unload' the texture, return the sprite to it's initial empty state. One way I could do it, is to have a blank texture, which I could load in - but, I wondered if there was a way to unload?? Thanks! Link to comment Share on other sites More sharing options...
rich Posted August 7, 2018 Share Posted August 7, 2018 There's a built-in blank texture you can use, just use the key '__DEFAULT'. charlie_says 1 Link to comment Share on other sites More sharing options...
Recommended Posts