diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-08 11:20:40 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-08 11:20:40 +0200 |
commit | 8f1b5d68f151a90ed82f684a51fbf14472fb5109 (patch) | |
tree | 788e42a8a2fe8a52e35141da22d3fe3209bd57bf /doc | |
parent | 0e16c3cc25f75a4e8721df0cd913c3d87b845c98 (diff) | |
parent | 2508c2e3093b3cb32a2aead46cef7d484e3148c9 (diff) | |
download | redot-engine-8f1b5d68f151a90ed82f684a51fbf14472fb5109.tar.gz |
Merge pull request #90039 from AThousandShips/load_relative_note
[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"> |