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
Signals
texture_changed()🔗
Emitted when thetexture is changed.
Property Descriptions
Meshget_mesh()
TheMesh that will be drawn by theMeshInstance2D.
Texture2Dget_texture()
TheTexture2D that will be used if using the defaultCanvasItemMaterial. Can be accessed asTEXTURE
in CanvasItem shader.