Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Combine meshes using static batching

Combine static meshes to reduce draw calls.
Read time 1 minuteLast updated 23 days ago

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

Page

Description

Introduction to static batchingUnderstand how Unity creates batches of static GameObjects to reduce draw calls.
Set up GameObjects for static batchingGet the best results from batching, and make sure Unity batches GameObjects.
Enable static batchingBatch static objects at build time, or at runtime with the
StaticBatchingUtility
API.
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