Getting a filepath from a texture

Hi,

was wondering if there was a way of retrieving the filepath of a texture at runtime so that I can use Resources.Load with it.

something along the lines of:

var thePath : String = guitexture.getFilePath()
newGUITexture.texture = Resources.Load(thePath);

Thanks!

textures have no path at runtime. But if you know that it is loaded through resources, you can use its name