Hi boys, i have a new question for you ;D
I have a sprite, and i get the texture of this prite, there is some method to get the texture image path? (like : “data/img/pippo.png”)
Gdx.files.internal(“path”) if that’s inside the assets folder. Please google next time.
Google wouldn’t have helped.
String path = ((FileTextureData)texture.getTextureData()).getFileHandle().path();
The cast will fail if your texture wasn’t loaded from a file.
i’m sorry, but you don’t understand what i have asked.
Thanks, this is exactly what i need
Apologies, I was reading on mobile and it must’ve gotten cut off.
no problem tnx for the disponibility