private void OnBecameVisible() { if (!s_IsVisible) { s_IsVisible = true; LightmapVisualization.enabled = true; RepaintSceneAndGameViews(); } }