Click or drag to resize

VisualServerCanvasItemAddTextureRectRegion Method

Adds a texture rect with region setting to the CanvasItem's draw commands.

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

Parameters

item
Type: GodotRID

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

rect
Type: GodotRect2

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

texture
Type: GodotRID

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

srcRect
Type: GodotRect2

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

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.CanvasItemAddTextureRectRegion(Godot.RID,Godot.Rect2,Godot.RID,Godot.Rect2,System.Nullable{Godot.Color},System.Boolean,Godot.RID,System.Boolean)"]

normalMap (Optional)
Type: GodotRID

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

clipUv (Optional)
Type: SystemBoolean

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

See Also