MeshInstance2D

Inherits:Node2D<CanvasItem<Node<Object

Node used for displaying aMesh in 2D.

Description

Node used for displaying aMesh in 2D. AMeshInstance2D can be automatically created from an existingSprite2D via a tool in the editor toolbar. Select theSprite2D node, then chooseSprite2D > Convert to MeshInstance2D at the top of the 2D editor viewport.

Tutorials

Properties

Mesh

mesh

Texture2D

texture


Signals

texture_changed()🔗

Emitted when thetexture is changed.


Property Descriptions

Meshmesh🔗

TheMesh that will be drawn by theMeshInstance2D.


Texture2Dtexture🔗

TheTexture2D that will be used if using the defaultCanvasItemMaterial. Can be accessed asTEXTURE in CanvasItem shader.


User-contributed notes

Please read theUser-contributed notes policy before submitting a comment.