Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Combine meshes using batching

Combine meshes to reduce draw calls, for either static or moving GameObjects.
Read time 1 minuteLast updated 23 days ago

Resources and approaches for improving performance by combining static GameObjects or moving GameObjects into fewer draw calls.

Page

Description

Introduction to batchingUnderstand how Unity creates batches of static and dynamic GameObjects to reduce draw calls.
Set up GameObjects for batchingGet the best results from batching, and make sure Unity batches GameObjects.
Batch static meshes at build timeUse static batching to combine static meshes at build time.
Batch meshes at runtimeBatch static objects with the
StaticBatchingUtility
API, or dynamic GameObjects with dynamic batching.
Combine meshes manuallyMerge multiple meshes into a single mesh that Unity can render in a single draw call.
Access properties in combined meshesUse MaterialPropertyBlocks to change properties of combined meshes without breaking batching.

Additional resources