Click or drag to resize

TileSetTileAddShape Method

Adds a shape to the tile.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void TileAddShape(
	int id,
	Shape2D shape,
	Transform2D shapeTransform,
	bool oneWay = false,
	Vector2? autotileCoord = null
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.TileSet.TileAddShape(System.Int32,Godot.Shape2D,Godot.Transform2D,System.Boolean,System.Nullable{Godot.Vector2})"]

shape
Type: GodotShape2D

[Missing <param name="shape"/> documentation for "M:Godot.TileSet.TileAddShape(System.Int32,Godot.Shape2D,Godot.Transform2D,System.Boolean,System.Nullable{Godot.Vector2})"]

shapeTransform
Type: GodotTransform2D

[Missing <param name="shapeTransform"/> documentation for "M:Godot.TileSet.TileAddShape(System.Int32,Godot.Shape2D,Godot.Transform2D,System.Boolean,System.Nullable{Godot.Vector2})"]

oneWay (Optional)
Type: SystemBoolean

[Missing <param name="oneWay"/> documentation for "M:Godot.TileSet.TileAddShape(System.Int32,Godot.Shape2D,Godot.Transform2D,System.Boolean,System.Nullable{Godot.Vector2})"]

autotileCoord (Optional)
Type: SystemNullableVector2
If the parameter is null, then the default value is new Vector2(0, 0)
See Also