Godot Version
4.3
Question
I’m trying to use Image.load_svg_from_string in gdscript but the function is not offered
load_from_file does load the svg but i need to load it from it’s string so I can manipulate it’s size so it will scale properly.
4.3
I’m trying to use Image.load_svg_from_string in gdscript but the function is not offered
load_from_file does load the svg but i need to load it from it’s string so I can manipulate it’s size so it will scale properly.
This method exists, but is not a static method, so you have to create a new image first:
var my_image = Image.new()
my_image.load_svg_from_string("...")
Thanks!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.