diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-05 16:33:52 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-05 16:33:52 +0200 |
commit | d31794c4a26e5e10fc30c34a1ae9722fd9f50123 (patch) | |
tree | d06ffe5579733f2868d2e3f6ebc9b419f8128d43 | |
parent | 6e5758013b2dcf822daf5ba784763b0721a4fe4e (diff) | |
parent | 75eaefe7a4e822d9704205bf62cc9fe563ca6805 (diff) | |
download | redot-engine-d31794c4a26e5e10fc30c34a1ae9722fd9f50123.tar.gz |
Merge pull request #82849 from KoBeWi/change_dir_to_parallel_universe
Clarify `change_dir()` and access scopes
-rw-r--r-- | doc/classes/DirAccess.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/DirAccess.xml b/doc/classes/DirAccess.xml index a987f4b5b4..9c72bc2247 100644 --- a/doc/classes/DirAccess.xml +++ b/doc/classes/DirAccess.xml @@ -71,6 +71,7 @@ <description> Changes the currently opened directory to the one passed as an argument. The argument can be relative to the current directory (e.g. [code]newdir[/code] or [code]../newdir[/code]), or an absolute path (e.g. [code]/tmp/newdir[/code] or [code]res://somedir/newdir[/code]). Returns one of the [enum Error] code constants ([constant OK] on success). + [b]Note:[/b] The new directory must be within the same scope, e.g. when you had opened a directory inside [code]res://[/code], you can't change it to [code]user://[/code] directory. If you need to open a directory in another access scope, use [method open] to create a new instance instead. </description> </method> <method name="copy"> |