Godot Version
4.3
Question
I’m using the following piece of code to extract all my levels in app:
func load_levels_from_folder():
var temp_levels = []
var dir = DirAccess.open(LEVELS_FOLDER)
for file in dir.get_files():
if file.ends_with(".tscn"): # Filtruj tylko pliki `.tscn`
temp_levels.append(load(LEVELS_FOLDER + file))
return temp_levels
Unfortunately, while it works in Godot, it does not work in the build. I guess sth with path is broken - how to fix that? My game is completely broken because no levels are loaded.