what is the alternative for load ???

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

load: This method has been deprecated and will be removed in the future.
what can i use alternatively ?
ResourceLoader.load() doesn’t work on windows

:bust_in_silhouette: Reply From: MintSoda

Do not use

var texture = ImageTexture.new()

use var texture = load("res://file.png")
it’s the same as ResourceLoader.load("res://file.png") which works on any platform.
ResourceInteractiveLoader is an alternative for background loading, but essentially the same implementaion.