-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing documentation for type_hint in ResourceLoader #1258
Comments
I think type hint is used when there are file collisions for the extension format. Like obj or bin, programmer might add multiple loaders which means that godot will be confused which ever works. Having a hint would help godot choose the correct loader https://github.com/godotengine/godot/blob/master/core/io/resource_loader.cpp#L169 https://github.com/godotengine/godot/blob/master/core/io/resource_loader.cpp#L54 https://github.com/godotengine/godot/blob/master/core/io/resource_loader.cpp#L74 you pass these values.
|
@hungrymonkey Maybe things have changed in the past 2 years, but print(ResourceLoader.load("res://icon.png", "Image")) prints |
There is no information what correct values could be passed to
ResorceLoader
functionsload
andload_interactive
.I've looked directly at source code of
ResorceLoader
but I still have no clue.The text was updated successfully, but these errors were encountered: