How do I load a texture from the top folder during the game? 3.0.3

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

How do I load a texture from the top folder during the game? 3.0.3

:bust_in_silhouette: Reply From: volzhs

I guess “top folder” means the root folder of your project.

var texture = load(“res://my_texture.png”)

No. I meant an even higher directory. Not the resources of the game.

Tort | 2018-06-17 01:55

You can access the user data directory using user:// instead of res:// (unlike res://, it is always writable to). You could also load images using HTTP requests; I don’t know if it’s possible to load an image outside of those paths though.

Calinou | 2018-06-18 00:06