diff options
author | Johannes Witt <johawitt@outlook.de> | 2022-06-07 21:29:39 +0200 |
---|---|---|
committer | Johannes Witt <johawitt@outlook.de> | 2022-06-16 13:18:36 +0200 |
commit | 8c7d4996c9cd610b313bcb2119d13ee11871bcfe (patch) | |
tree | a1e58a23f9af6bb614b4d5200fb8d609234cf10d /modules/gdscript/doc_classes | |
parent | 1ad6fade00ab3f43efc87038abeab922eb8bdd4c (diff) |
Document how to load Images and MP3 files at run-time
Diffstat (limited to 'modules/gdscript/doc_classes')
-rw-r--r-- | modules/gdscript/doc_classes/@GDScript.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index 70151c4d21..07be6aaf9b 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -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"> |