godot: ResourceLoader doesn't work with system paths
Godot version: 3.0 (e3fd61b63860cd82dee12bf77550c1a5cf1373f5)
OS/device including version: Ubuntu 17.10
Issue description:
I’m currently using image.load(path) to load images from the users file system. I wanted to try loading any kind of resource using ResourceLoader.load and ResourceLoader.load_interactive, but both give me an error: No loader found for resource: ...
I’m not sure if this is intended, but I expected it to work since I could use image.load for the same path.
Steps to reproduce:
print(ResourceLoader.load("res://resource") != null) # Should be true
print(ResourceLoader.load("/path/to/resource") != null) # Should be true
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 11
- Comments: 15 (7 by maintainers)
load()method in clarifies how to load non-imported Resources: https://docs.godotengine.org/en/latest/classes/class_%40gdscript.html#class-gdscript-method-loadLoading Resources outside project works normally if they are not importable (e.g. GDScript, JSON). Closing.
Theora / OGV is supported. Edit: That question was completely off-topic though 😃