Get the texture path from textureID?
View Single Post
03-23-19, 11:50 AM
A Rage Talon Dragon Guard
Join Date: Sep 2012
Well, sometimes GetTexture() returns texture IDs, but other times it returns texture paths, whichever is available, I guess, you can't be 100% sure.
There's GetTextureFileID and GetTextureFilePath, however, they don't really work the way one'd expect them to work.
If you passed an ID to SetTexture, GetTextureFilePath will return the object itself O_o (I assume that's a bug, it should return nil, I'll report it on Monday), GetTextureFileID will return that ID, if you passed a path to SetTexture, GetTextureFileID will return nil, GetTextureFilePath will return that path.
There's this lovely thing though:
Last edited by lightspark : 03-23-19 at
View Public Profile
Send a private message to lightspark
Find More Posts by lightspark