Click or drag to resize

VisualServerCanvasItemAddTextureRect Method

Adds a textured rect to the CanvasItem's draw commands.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void CanvasItemAddTextureRect(
	RID item,
	Rect2 rect,
	RID texture,
	bool tile = false,
	Color? modulate = null,
	bool transpose = false,
	RID normalMap = null
)

Parameters

item
Type: GodotRID

[Missing <param name="item"/> documentation for "M:Godot.VisualServer.CanvasItemAddTextureRect(Godot.RID,Godot.Rect2,Godot.RID,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.RID)"]

rect
Type: GodotRect2

[Missing <param name="rect"/> documentation for "M:Godot.VisualServer.CanvasItemAddTextureRect(Godot.RID,Godot.Rect2,Godot.RID,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.RID)"]

texture
Type: GodotRID

[Missing <param name="texture"/> documentation for "M:Godot.VisualServer.CanvasItemAddTextureRect(Godot.RID,Godot.Rect2,Godot.RID,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.RID)"]

tile (Optional)
Type: SystemBoolean

[Missing <param name="tile"/> documentation for "M:Godot.VisualServer.CanvasItemAddTextureRect(Godot.RID,Godot.Rect2,Godot.RID,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.RID)"]

modulate (Optional)
Type: SystemNullableColor
If the parameter is null, then the default value is new Color(1, 1, 1, 1)
transpose (Optional)
Type: SystemBoolean

[Missing <param name="transpose"/> documentation for "M:Godot.VisualServer.CanvasItemAddTextureRect(Godot.RID,Godot.Rect2,Godot.RID,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.RID)"]

normalMap (Optional)
Type: GodotRID

[Missing <param name="normalMap"/> documentation for "M:Godot.VisualServer.CanvasItemAddTextureRect(Godot.RID,Godot.Rect2,Godot.RID,System.Boolean,System.Nullable{Godot.Color},System.Boolean,Godot.RID)"]

See Also