Merge pull request #47935 from HaSa1002/doc-loading-run-time

This commit is contained in:
Rémi Verschelde
2022-07-20 22:33:49 +02:00
committed by GitHub
3 changed files with 26 additions and 1 deletions

View File

@@ -144,6 +144,7 @@
[/codeblock]
[b]Important:[/b] The path must be absolute, a local path will just return [code]null[/code].
This method is a simplified version of [method ResourceLoader.load], which can be used for more advanced scenarios.
[b]Note:[/b] You have to import the files into the engine first to load them using [method load]. If you want to load [Image]s at run-time, you may use [method Image.load]. If you want to import audio files, you can use the snippet described in [member AudioStreamMP3.data].
</description>
</method>
<method name="preload">