November 2019
Intermediate to advanced
404 pages
12h 9m
English
Any new objects we add into the Scene at runtime will not be automatically combined into any existing batch by the static batching system, even if they were marked as Batching Static. To do so would cause an enormous runtime overhead between recalculating the mesh and synchronizing with the Rendering Pipeline, so Unity does not even attempt to do it automatically.
For the most part, we should try to keep any meshes we want to be statically batched present in the original Scene file; however, if dynamic instantiation is necessary, or we are making use of additional Scene loading, then we can control static batch eligibility with the StaticBatchUtility.Combine() method. This utility method has two overloads: ...
Read now
Unlock full access