Click or drag to resize

VisualServer.CanvasItemAddTextureRectRegion 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: Godot.RID

[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: Godot.Rect2

[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: Godot.RID

[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: Godot.Rect2

[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: System.Nullable<Color>
If the parameter is null, then the default value is new Color(1, 1, 1, 1)
transpose (Optional)
Type: System.Boolean

[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: Godot.RID

[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: System.Boolean

[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