Click or drag to resize

CanvasItemDrawMesh Method

Draws a Mesh in 2D, using the provided texture. See MeshInstance2D for related documentation.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void DrawMesh(
	Mesh mesh,
	Texture texture,
	Texture normalMap = null,
	Transform2D? transform = null,
	Color? modulate = null
)

Parameters

mesh
Type: GodotMesh

[Missing <param name="mesh"/> documentation for "M:Godot.CanvasItem.DrawMesh(Godot.Mesh,Godot.Texture,Godot.Texture,System.Nullable{Godot.Transform2D},System.Nullable{Godot.Color})"]

texture
Type: GodotTexture

[Missing <param name="texture"/> documentation for "M:Godot.CanvasItem.DrawMesh(Godot.Mesh,Godot.Texture,Godot.Texture,System.Nullable{Godot.Transform2D},System.Nullable{Godot.Color})"]

normalMap (Optional)
Type: GodotTexture

[Missing <param name="normalMap"/> documentation for "M:Godot.CanvasItem.DrawMesh(Godot.Mesh,Godot.Texture,Godot.Texture,System.Nullable{Godot.Transform2D},System.Nullable{Godot.Color})"]

transform (Optional)
Type: SystemNullableTransform2D
If the parameter is null, then the default value is Transform2D.Identity
modulate (Optional)
Type: SystemNullableColor
If the parameter is null, then the default value is new Color(1, 1, 1, 1)
See Also