Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
MeshInstance2D¶
Inherits: Node2D < CanvasItem < Node < Object
用于在 2D 中显示 Mesh 的节点。
Description¶
用于在 2D 中显示 Mesh 的节点。可以通过编辑器工具栏中的工具,从现有的 Sprite2D 自动创建 MeshInstance2D。请选中该 Sprite2D 节点,然后在 2D 编辑器视口的顶部选择 Sprite2D > 转换为 MeshInstance2D。
Tutorials¶
Properties¶
Signals¶
texture_changed ( )
当 texture 被改变时触发。
Property Descriptions¶
Mesh mesh
该 MeshInstance2D 绘制的 Mesh。
Texture2D texture
使用默认 CanvasItemMaterial 时,将使用的 Texture2D。可以在 CanvasItem 着色器中作为 TEXTURE
访问。