Mesh 2D
Draws the standard mesh vertex layout in a 2D camera with a compatible Mesh2D material.
component engine.Mesh2D
On this page
Usage
Add it with Create → Rendering → Mesh 2D.
Try it
Mesh 2D draw order
The blue mesh overlaps the red sprite. Its Order controls which one is in front.
Change Order from 2 to 0, then use Reset to restore it.
Starts the scene; open the example parameters to experiment.
Scene3 nodes
Mesh 2D
Transform
position[-0.5, 0]rotation0scale[3, 3]
Overlap
Transform
position[1, 0]rotation0scale[1, 1]
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| Mesh | Mesh | none | Mesh asset with the standard position, normal, UV and vertex color layout. |
| Texture | Texture | none | Main texture sampled in mesh UV coordinates. Empty uses white. |
| Material | AssetRef<material> | none | Shared material asset. The shader domain must be mesh2d. |
| Tint | Color | rgba(1, 1, 1, 1) | Linear color multiplied with the texture; alpha controls transparency. |
| Layer | int | 0 | Visual layer for this 2D mesh. |
| Order | int | 0 | Painter order among sprites and meshes in the same layer; higher values draw later. |
Related guides
- Materials and shaders A material is a shared asset.
- Art Studio: drawing, frames and source files Create a drawing, edit layers and frames, then distinguish saving its source from publishing game assets.
- Cameras Camera2D renders an orthographic view from the node's 2D transform.