diff options
author | Juan <reduzio@gmail.com> | 2024-09-05 08:52:37 +0200 |
---|---|---|
committer | Juan <reduzio@gmail.com> | 2024-10-07 09:47:22 +0200 |
commit | e05d5b8813c8e9ac873b68653a0dadb234050aed (patch) | |
tree | 7e771ceb9a6a7bef5b3bb33f4233f7931606215e /modules/gdscript/gdscript_lambda_callable.cpp | |
parent | db66bd35af704fe0d83ba9348b8c50a48e51b2ba (diff) | |
download | redot-engine-e05d5b8813c8e9ac873b68653a0dadb234050aed.tar.gz |
Provide a reliable way to see original resources in a directory
When exporting a project, resources are often moved, converted or
remapped (source import files are gone, text scenes are converted to binary,
etc).
This new function allows to list a directory and obtain the actual original
resource files.
Example
```GDScript
var resources = ResourceLoader.list_directory("res://images")
print(resources)
```
Result will be something like:
```
["image1.png","image2.png","image3.png"]
```
instead of
```
["image1.png.import","image2.png.import","image3.png.import"]
```
Diffstat (limited to 'modules/gdscript/gdscript_lambda_callable.cpp')
0 files changed, 0 insertions, 0 deletions