Click or drag to resize

VisualServerCanvasItemAddRect Method

Adds a rectangle to the CanvasItem's draw commands.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void CanvasItemAddRect(
	RID item,
	Rect2 rect,
	Color color
)

Parameters

item
Type: GodotRID

[Missing <param name="item"/> documentation for "M:Godot.VisualServer.CanvasItemAddRect(Godot.RID,Godot.Rect2,Godot.Color)"]

rect
Type: GodotRect2

[Missing <param name="rect"/> documentation for "M:Godot.VisualServer.CanvasItemAddRect(Godot.RID,Godot.Rect2,Godot.Color)"]

color
Type: GodotColor

[Missing <param name="color"/> documentation for "M:Godot.VisualServer.CanvasItemAddRect(Godot.RID,Godot.Rect2,Godot.Color)"]

See Also