Esempio n. 1
0
 private void OnEnable()
 {
     base.titleContent  = base.GetLocalizedTitleContent();
     this.m_LightingTab = new LightingWindowLightingTab();
     this.m_LightingTab.OnEnable();
     this.m_LightmapPreviewTab = new LightingWindowLightmapPreviewTab();
     this.m_ObjectTab          = new LightingWindowObjectTab();
     this.m_ObjectTab.OnEnable(this);
     base.autoRepaintOnSceneChange = false;
     this.m_PreviewResizer.Init("LightmappingPreview");
     EditorApplication.searchChanged = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.searchChanged, new EditorApplication.CallbackFunction(base.Repaint));
     base.Repaint();
 }
Esempio n. 2
0
        void OnEnable()
        {
            titleContent = GetLocalizedTitleContent();

            m_LightingSettingsTab = new LightingWindowLightingTab();
            m_LightingSettingsTab.OnEnable();
            m_RealtimeLightmapsTab = new LightingWindowLightmapPreviewTab(LightmapType.DynamicLightmap);
            m_BakedLightmapsTab    = new LightingWindowLightmapPreviewTab(LightmapType.StaticLightmap);

            Undo.undoRedoPerformed           += Repaint;
            Lightmapping.lightingDataUpdated += Repaint;

            Repaint();
        }
        void OnEnable()
        {
            titleContent = GetLocalizedTitleContent();

            m_LightingSettingsTab = new LightingWindowLightingTab();
            m_LightingSettingsTab.OnEnable();
            m_RealtimeLightmapsTab = new LightingWindowLightmapPreviewTab(LightmapType.DynamicLightmap);
            m_BakedLightmapsTab    = new LightingWindowLightmapPreviewTab(LightmapType.StaticLightmap);


            autoRepaintOnSceneChange = false;
            Undo.undoRedoPerformed  += Repaint;
            Repaint();
        }
        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();
        }