- Home /
Question by
lizs4ever · Jul 23, 2015 at 10:08 PM ·
static batchingdynamic batching
about do static batching dynamicly
void Start()
{
var gos = new GameObject[10];
for (var i = 0; i < 10; i++)
{
var go = Instantiate(Prefab) as GameObject;
go.transform.parent = gameObject.transform;
gos[i] = go;
}
StaticBatchingUtility.Combine(gos, gameObject);
}
prefab is static
player setting with static batching checked
no batching occured. but i found sample code, i really confused.
Comment