load a texture from external path

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

I’m trying to try to get a texture to load from an external folder outside of the project texture = load("C:/Users/all_a/dowloads a texture from external pathoads/texture")
how do this?

This proposal might give you some hints on how to do this.

Jayman2000 | 2021-03-08 21:52

:bust_in_silhouette: Reply From: Andrea
var img = Image.new()
var tex = ImageTexture.new()

this should work regardless of the path being absolute or inside the project folder