MeshInstance2D

Refreshing Cache...

Inherits: Node2D < CanvasItem < Node < Object

Node used for displaying a Mesh in 2D.

Description

Node used for displaying a Mesh in 2D. Can be constructed from an existing Sprite via a tool in the editor toolbar. Select “Sprite” then “Convert to Mesh2D”, select settings in popup and press “Create Mesh2D”.

Tutorials

Signals

  • texture_changed ( )

Emitted when the Texture is changed.

Property Descriptions

Setterset_mesh(value)
Getterget_mesh()

The Mesh that will be drawn by the MeshInstance2D.


Setterset_normal_map(value)
Getterget_normal_map()

The normal map that will be used if using the default CanvasItemMaterial.


Setterset_texture(value)
Getterget_texture()

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

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:34:32. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.