Get "texture_normal.resource_path" of a node that uses a texture from an external path

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mehmet432

So normally if you TextureButton.texture_normal = load(path) you can use print(TextureButton.texture_normal.resource_path)to get the path of the texture of the node.

But i’m using this

var image = Image.new()
var imageTexture = ImageTexture.new()
image.load(path)
imageTexture.create_from_image(image)
$TextureButton.texture_normal = imageTexture

and .resource_path doesn’t work on this,
is there a way to make it work?

Edit: After not being able to find a way, i ended up scrapping what i was going to do completely, so i don’t know if i want to know anymore.