Batch static meshes at build time
Use static batching to combine static meshes at build time.
Read time 1 minuteLast updated 24 days ago
To batch static GameObjects at build time, enable static batching. For more information about batching, refer to Introduction to batching meshes.
Follow these steps:
- Go to Edit > > Player.Project Settings
?
- In Other Settings, enable .Static Batching
?
- In the Scene view or Hierarchy window, select the GameObject that you want to batch. You can select multiple GameObjects at the same time to enable static batching for all of them.
- In the window, select the Static Editor Flags dropdown and enable Batching Static.Inspector
?
If you use static batching at build time, Unity doesn't use any CPU resources at runtime to generate the mesh data for the static batch.
If a mesh is culled because it's outside the camera view, Unity might not be able to draw all the meshes in a single draw call. This is because the culled mesh leaves a gap in the combined vertex buffers.