Browse Source

Normalize description of ResourceLoader.list_directory()

Wierdox 3 tháng trước cách đây
mục cha
commit
0689522e61
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      doc/classes/ResourceLoader.xml

+ 1 - 1
doc/classes/ResourceLoader.xml

@@ -81,8 +81,8 @@
 			<description>
 			<description>
 				Lists a directory, returning all resources and subdirectories contained within. The resource files have the original file names as visible in the editor before exporting. The directories have [code]"/"[/code] appended.
 				Lists a directory, returning all resources and subdirectories contained within. The resource files have the original file names as visible in the editor before exporting. The directories have [code]"/"[/code] appended.
 				[codeblock]
 				[codeblock]
-				print(ResourceLoader.list_directory("res://assets/enemies/slime"))
 				# Prints ["extra_data/", "model.gltf", "model.tscn", "model_slime.png"]
 				# Prints ["extra_data/", "model.gltf", "model.tscn", "model_slime.png"]
+				print(ResourceLoader.list_directory("res://assets/enemies/slime"))
 				[/codeblock]
 				[/codeblock]
 				[b]Note:[/b] The order of files and directories returned by this method is not deterministic, and can vary between operating systems.
 				[b]Note:[/b] The order of files and directories returned by this method is not deterministic, and can vary between operating systems.
 				[b]Note:[/b] To normally traverse the filesystem, see [DirAccess].
 				[b]Note:[/b] To normally traverse the filesystem, see [DirAccess].