瀏覽代碼

Fix example resource path in Data paths

Co-authored-by: Sergey Pershenkov <[email protected]>
Hugo Locurcio 3 年之前
父節點
當前提交
28fd0372eb
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      tutorials/io/data_paths.rst

+ 4 - 3
tutorials/io/data_paths.rst

@@ -19,9 +19,10 @@ As mentioned in the :ref:`doc_command_line_tutorial`, Godot considers that
 a project exists in any given folder that contains a ``project.godot``
 text file, even if such file is empty.
 
-Accessing project files can be done by opening any path with ``res://``
-as a base. For example, a texture located in the root of the project
-folder may be opened from the following path: ``res://some_texture.png``.
+You can access any file relative to it by writing paths starting with
+``res://``, which stands for resources. For example, you can access an image
+file ``character.png`` located in the project's root folder in code with the
+following path: ``res://character.png``.
 
 User path (persistent data)
 ---------------------------