Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | unchained |
I was wondering, is there a way in GDscript to get the resource path of a Sprite’s texture? For example, let’s say I have a Sprite node called Hero, and calling this function on it would return “res://characters/hero.png”. I know there’s a way to set the texture, but I haven’t been able to find a way to get the path of an already set texture.