View on GitHub

ezEngine Documentation

The documentation for ezEngine

Mesh Asset

A mesh asset represents a mesh that can be used for rendering. In the most common case the mesh asset imports the mesh data from an external file, such as an FBX file. However, it also supports generating the mesh data for common shapes (spheres, cylinders, …) procedurally. Mesh assets are typically added to a scene with a mesh component.

Mesh Asset

The left hand side of the asset document shows a 3D preview of the mesh. The viewport allows to switch the render mode to inspect the mesh normals, UV coordinates and so on.

On the right hand side the asset properties specify how to import or generate the mesh data.


The mesh asset does not automatically update when you edit its properties. Instead you need to transform the asset (Ctrl+E or with the rightmost button in the toolbar).

Asset Properties

Procedural Mesh Generation

Through the PrimitiveType option you can choose to create a mesh procedurally. In this case object specific options appear. Note that by default objects use a detail level of 0 which means that the editor will pick a decent value, depending on the chosen primitive type.

Be aware that some detail values seemingly have no effect. For instance, for cones, capsules and cylinders the detail represents the number of subdivisions along the circumference, and therefore can’t be lower than 3. Therefore the values 1, 2 and 3 all produce the same result.

See Also