0 votes

I am trying to list all files and directories under project folder.
But when using Directory.get_next(), it only returns name of file or dir

Is there a way to to get paths, at least relative to res:// folder?

What I want to do is iterate over every asset under folder and load it via ResourceLoader.load()

Example to load all files under assets folder

res://assets/texture.png
res://assets/scene.tscn
res://assets/resource.tres
in Engine by (22 points)

1 Answer

0 votes
Best answer
by (114 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.