Click or drag to resize

GridMapSetCellItem Method

Sets the mesh index for the cell referenced by its grid-based X, Y and Z coordinates.

A negative item index such as will clear the cell.

Optionally, the item's orientation can be passed. For valid orientation values, see Basis.get_orthogonal_index.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetCellItem(
	int x,
	int y,
	int z,
	int item,
	int orientation = 0
)

Parameters

x
Type: SystemInt32

[Missing <param name="x"/> documentation for "M:Godot.GridMap.SetCellItem(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

y
Type: SystemInt32

[Missing <param name="y"/> documentation for "M:Godot.GridMap.SetCellItem(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

z
Type: SystemInt32

[Missing <param name="z"/> documentation for "M:Godot.GridMap.SetCellItem(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

item
Type: SystemInt32

[Missing <param name="item"/> documentation for "M:Godot.GridMap.SetCellItem(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

orientation (Optional)
Type: SystemInt32

[Missing <param name="orientation"/> documentation for "M:Godot.GridMap.SetCellItem(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)"]

See Also