Click or drag to resize

TileMapSetCellv Method

Sets the tile index for the given cell.

An index of -1 clears the cell.

Optionally, the tile can also be flipped or transposed.

Note: 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 UpdateDirtyQuadrants.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetCellv(
	Vector2 position,
	int tile,
	bool flipX = false,
	bool flipY = false,
	bool transpose = false
)

Parameters

position
Type: GodotVector2

[Missing <param name="position"/> documentation for "M:Godot.TileMap.SetCellv(Godot.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)"]

tile
Type: SystemInt32

[Missing <param name="tile"/> documentation for "M:Godot.TileMap.SetCellv(Godot.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)"]

flipX (Optional)
Type: SystemBoolean

[Missing <param name="flipX"/> documentation for "M:Godot.TileMap.SetCellv(Godot.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)"]

flipY (Optional)
Type: SystemBoolean

[Missing <param name="flipY"/> documentation for "M:Godot.TileMap.SetCellv(Godot.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)"]

transpose (Optional)
Type: SystemBoolean

[Missing <param name="transpose"/> documentation for "M:Godot.TileMap.SetCellv(Godot.Vector2,System.Int32,System.Boolean,System.Boolean,System.Boolean)"]

See Also