What are some ways to set the texture of a Sprite from SpriteCache?
-
I load a spritesheet in -> now these are in the SpriteCache.
-
I create a Sprite and now later on I want to to a
setTexture()
but that wants a filename and it goes and looks to lead it from the file system ( I see: file not found errors to prove this…) -
I’d like to just look at my SpriteFrame Cache for the
setTexture()
so I dont have to ship the individual .png’s in my Resources directory.
Thoughts anyone?