summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-28 14:07:20 +0200
committerGitHub <noreply@github.com>2021-03-28 14:07:20 +0200
commitb9d941b22c668fc6d0e96c0d8f59f3ce4c1b3724 (patch)
tree68d009980445f3a4caeda57a81efc50a63b351aa /doc/classes
parentf8442b97bf7f2b445b0aca9c02629277c11064d6 (diff)
parent4378ef0bb7bec42b20c77cc0709b25cb71fa120a (diff)
Merge pull request #47413 from skyace65/DirectoryWarning
Add a warning on using directory to access of imported files
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Directory.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Directory.xml b/doc/classes/Directory.xml
index 6a126204c6..a9d7960501 100644
--- a/doc/classes/Directory.xml
+++ b/doc/classes/Directory.xml
@@ -6,6 +6,7 @@
<description>
Directory type. It is used to manage directories and their content (not restricted to the project folder).
When creating a new [Directory], it must be explicitly opened using [method open] before most methods can be used. However, [method file_exists] and [method dir_exists] can be used without opening a directory. If so, they use a path relative to [code]res://[/code].
+ [b]Note:[/b] Many resources types are imported (e.g. textures or sound files), and their source asset will not be included in the exported game, as only the imported version is used. Use [ResourceLoader] to access imported resources.
Here is an example on how to iterate through the files of a directory:
[codeblocks]
[gdscript]