Documentation

Unity Engine


Unity Engine


Create a mesh

Create a mesh in the Editor, in a 3D model, or via script.
Read time 1 minuteLast updated a month ago

You can add meshes to a Unity project in the following ways:
  • Create a mesh as part of a model 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.