Attention: Here be dragons (unstable version)
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Redot.
Checking the stable version of the documentation...
MeshInstance2D
Inherits: Node2D < CanvasItem < Node < Object
Node used for displaying a Mesh in 2D.
Description
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.
Tutorials
Properties
Signals
texture_changed() 🔗
Emitted when the texture is changed.
Property Descriptions
The Mesh that will be drawn by the MeshInstance2D.
The Texture2D that will be used if using the default CanvasItemMaterial. Can be accessed as TEXTURE
in CanvasItem shader.