瀏覽代碼

Add defaults to tilemap set_cell function example

skyace65 5 年之前
父節點
當前提交
43ab91ca02
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/TileMap.xml

+ 1 - 1
doc/classes/TileMap.xml

@@ -166,7 +166,7 @@
 				If you need these to be immediately updated, you can call [method update_dirty_quadrants].
 				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:
 				Overriding this method also overrides it internally, allowing custom logic to be implemented when tiles are placed/removed:
 				[codeblock]
 				[codeblock]
-				func set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)
+				func set_cell(x, y, tile, flip_x=false, flip_y=false, transpose=false, autotile_coord=Vector2())
 				    # Write your custom logic here.
 				    # Write your custom logic here.
 				    # To call the default method:
 				    # To call the default method:
 				    .set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)
 				    .set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)