- Home /
Static batching and showing/hiding game objects
Hi,
I want to take advantage of static batching. In my game I have a large set of prefabs that are instantiated at run time, each consisting of several sub-meshes most of which use the same material with an atlas.
All these game objects are static but some of them need to be shown and hidden in run time by enabling/disabling their mesh renderers.
My question is: I want to use the MeshCombineUtility but from looking at its source code it makes a big mesh out of a set of meshes, so I can't see now I can individuall show and hide different GOs if thir meshed been fused into one big one like this. How does the run-time static batching work if one needs to show/hide combined GOs?
Your answer
![](https://koobas.hobune.stream/wayback/20220612151557im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Lots of terrain details makes my batch count high. Ideas? 1 Answer
How to decrease batches for Text Mesh Pro(UI) when there are images? 0 Answers
Performance concerns about using too many materials in one scene 2 Answers
Is it possible to fade individual game objects while maintaining material batching? 1 Answer
GPU Instancing performance variation 3 Answers