private void OnBakeButton(object data) { if (((int) data) == 0) { Lightmapping.BakeAllReflectionProbesSnapshots(); } }