load: Loaded resource as image file, this will not work on export: 'res://resources/Myfile.png'. Instead, import the image file as an Image resource and load it normally as a resource.
Could any body explain what does this mean?
It works on windows but not on ios or android, what is the solution ?
This is the code I'm using to load the image, It works
var avatar_file ="res://resources/Myfile.png"
var img = Image.new()
img.load(avatar_file)
var imagetexture=ImageTexture.new()
imagetexture.create_from_image(img)
$AvatarSP.texture = imagetexture