Topic was automatically imported from the old Question2Answer platform.
Asked By
rolfpancake
Old Version
Published before Godot 3 was released.
I am using the Directory class to search for files outside of the projects res-folder and it is working fine. However I am not able to load a scene which path is outside of the res-folder. Is this even possible?
Works:
var scene = load("res://scene.tscn")
Doesn’t work:
var scene = load("../scene.tscn")
var scene = load("C:/scene.tscn")
The scene tries to load a local resource (like a script) and it fails because the res:// path is now pointing to the project which is loading this external scene. Don’t know how to handle that.
rolfpancake | 2018-01-16 18:15
at least mobile platforms, is better to put external files on user data folder (OS.get_user_data_dir( ) ) and utilize user:// or search for Documents folder (try with OS.getsystemdir(OS.SYSTEMDIR_DOCUMENTS))