Table of Contents

Class MeshInstance2D

Node used for displaying a Mesh in 2D.

Inheritance
MeshInstance2D

Remarks

Node used for displaying a Mesh in 2D. A MeshInstance2D can be automatically created from an existing Sprite2D via a tool in the editor toolbar. Select the Sprite2D node, then choose Sprite2D > Convert to MeshInstance2D at the top of the 2D editor viewport.

See Also

Properties

mesh

The Mesh that will be drawn by the MeshInstance2D.

var mesh : Mesh

Property Value

Mesh

Remarks

  • void set_mesh(Mesh value)
  • Mesh get_mesh

texture

The Texture2D that will be used if using the default CanvasItemMaterial. Can be accessed as TEXTURE in CanvasItem shader.

var texture : Texture2D

Property Value

Texture2D

Remarks

Events

texture_changed

Emitted when the texture is changed.

signal texture_changed