#How do I load an image from URL or non-res:// file path in Godot 4?

7 messages · Page 1 of 1 (latest)

cyan kettle
#

I couldn't find anything online. Apparently the option to load an image texture from file that is not inside the "res://" directory was removed in 4.0. Is there another way? (I'm using GDScript)

glad belfry
#

It's pretty similar to the way it worked in 3.5

#

What have you tried?

#

There's example code in the ImageTexture docs

cyan kettle
#

I've tried loading it with ImageTextures (with varios methods, such as loading buffer or straight up reading from file), I've tried loading it with load() function, I've even tried copying it from user:// to res:// and loading it from there, however it only works after restart

glad belfry
#

You don't need that second line