View mesh data visualizations
Creating and accessing meshes via script
Create a mesh
You can add meshes to a Unity project in the following ways:
- Create a mesh as part of a modelA 3D model representation of an object, such as a character, a building, or a piece of furniture. More info
See in Glossary in a 3D modeling program, then import it. Unity creates a mesh asset as a part of the model hierarchy when you import a model. For more information, see Importing Models.
- Create a mesh directly with in-Editor tools. Unity has built-in primitive shapes such as spheres and capsules that you can place directly into a Scene. You can also use a package like ProBuilder to model a custom mesh in the Editor.
-
Create meshes with code, either at runtime or in the Editor.
View mesh data visualizations
Creating and accessing meshes via script