I have a dog, in scene-1, the dog will be set to texture1 which named "dog".
In scene-2, i first removeAndUnload("dog"), then new texture2 which is different from texture1 but has the same name "dog", then set the texture2 to the dog.
But the dog in scene-2 looks like with another texture which is not texture2.
Codes:
//scene1
texture1 = new texture(in);
textManager.addTexture("dog", texture1);
dog.setTexture("dog");
//do something
...
//switch to scene2
removeAndUnload("dog");
//in scene2
//add some other texture first
textureManager.addTexture("some other textures")
//new texture2 with the same name "dog"
texture2 = new texture(in2);
textureManager.addTexture("dog", texture2);
dog.setTexture("dog");
// the dog seems not to be set to the texture2, but one of "some other textures"
I guess that was caused by some caching mechanism?