瀏覽代碼

Merge pull request #37566 from lucaslcode/clarify_autotile

clarify autotile_coord in docs
Rémi Verschelde 5 年之前
父節點
當前提交
82e12a0f3e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      doc/classes/TileMap.xml

+ 2 - 2
doc/classes/TileMap.xml

@@ -43,7 +43,7 @@
 			<argument index="1" name="y" type="int">
 			</argument>
 			<description>
-				Returns the coordinate of the autotile variation in the tileset. Returns a zero vector if the cell doesn't have autotiling.
+				Returns the coordinate (subtile column and row) of the autotile variation in the tileset. Returns a zero vector if the cell doesn't have autotiling.
 			</description>
 		</method>
 		<method name="get_cellv" qualifiers="const">
@@ -161,7 +161,7 @@
 			<description>
 				Sets the tile index for the cell given by a Vector2.
 				An index of [code]-1[/code] clears the cell.
-				Optionally, the tile can also be flipped, transposed, or given autotile coordinates.
+				Optionally, the tile can also be flipped, transposed, or given autotile coordinates. The autotile coordinate refers to the column and row of the subtile.
 				[b]Note:[/b] Data such as navigation polygons and collision shapes are not immediately updated for performance reasons.
 				If you need these to be immediately updated, you can call [method update_dirty_quadrants].
 				Overriding this method also overrides it internally, allowing custom logic to be implemented when tiles are placed/removed: