mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[Doc] Document loading behavior with relative paths
(cherry picked from commit 2508c2e309)
This commit is contained in:
committed by
Rémi Verschelde
parent
2114489e23
commit
3bb74adc45
@@ -78,6 +78,7 @@
|
||||
Returns an empty resource if no [ResourceFormatLoader] could handle the file.
|
||||
GDScript has a simplified [method @GDScript.load] built-in method which can be used in most situations, leaving the use of [ResourceLoader] for more advanced scenarios.
|
||||
[b]Note:[/b] If [member ProjectSettings.editor/export/convert_text_resources_to_binary] is [code]true[/code], [method @GDScript.load] will not be able to read converted files in an exported project. If you rely on run-time loading of files present within the PCK, set [member ProjectSettings.editor/export/convert_text_resources_to_binary] to [code]false[/code].
|
||||
[b]Note:[/b] Relative paths will be prefixed with [code]"res://"[/code] before loading, to avoid unexpected results make sure your paths are absolute.
|
||||
</description>
|
||||
</method>
|
||||
<method name="load_threaded_get">
|
||||
|
||||
Reference in New Issue
Block a user