OnEnable() public method

public OnEnable ( EditorWindow window ) : void
window EditorWindow
return void
Ejemplo n.º 1
0
        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();
        }