void OnEnable() { titleContent = GetLocalizedTitleContent(); m_LightingTab = new LightingWindowLightingTab(); m_LightingTab.OnEnable(); m_LightmapPreviewTab = new LightingWindowLightmapPreviewTab(); m_ObjectTab = new LightingWindowObjectTab(); m_ObjectTab.OnEnable(this); InitLightmapSettings(); autoRepaintOnSceneChange = false; m_PreviewResizer.Init("LightmappingPreview"); EditorApplication.searchChanged += Repaint; Repaint(); }