MeshInstance2D

Inherits: Node2D < CanvasItem < Node < Object Mesh in 2D.

Description

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

  • 2D 网格

    Properties

    Signals

  • texture_changed ( ) texture is changed.

    Property Descriptions

  • Mesh mesh Mesh that will be drawn by the MeshInstance2D.

  • Texture normal_map CanvasItemMaterial. Note: Godot expects the normal map to use X+, Y-, and Z+ coordinates. See this page for a comparison of normal map coordinates expected by popular engines.

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