Add a warning on using directory to access of imported files
This commit is contained in:
parent
a82765a464
commit
4378ef0bb7
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
<description>
|
<description>
|
||||||
Directory type. It is used to manage directories and their content (not restricted to the project folder).
|
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].
|
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:
|
Here is an example on how to iterate through the files of a directory:
|
||||||
[codeblocks]
|
[codeblocks]
|
||||||
[gdscript]
|
[gdscript]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue