Godot Version
4.7
Question
I have a resource that holds a character’s stats, graphics, and other info. I also want the Sprite2D representing the character to change, depending on the resource it is taking its data from.
I see there is a way to load images and convert them to sprite2D textures with load(), but that seems to be for when you want to load a specific image file with a path, like so:
var texture = load("res://icon.svg")
How do you load it when it’s from a resource, and you don’t always know what image it is ahead of time?