diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-03-30 13:33:49 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-03-30 13:33:49 +0100 |
commit | 2508c2e3093b3cb32a2aead46cef7d484e3148c9 (patch) | |
tree | bb016cc436c1408419732cef8ed1a5daf056c510 /doc | |
parent | 86415f02452dbf6de85325d3321fd7ec7fba9e94 (diff) | |
download | redot-engine-2508c2e3093b3cb32a2aead46cef7d484e3148c9.tar.gz |
[Doc] Document loading behavior with relative paths
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/ResourceLoader.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/ResourceLoader.xml b/doc/classes/ResourceLoader.xml index 95fbee4a24..9cfc2c532d 100644 --- a/doc/classes/ResourceLoader.xml +++ b/doc/classes/ResourceLoader.xml @@ -79,6 +79,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"> |