Esempio n. 1
0
        private void OnLoadProject(UTinyProject project)
        {
            var sceneView = SceneView.sceneViews.Count > 0 ? SceneView.sceneViews[0] as SceneView : null;

            // crush the scene view
            if (null != sceneView)
            {
                sceneView.in2DMode        = true;
                sceneView.m_SceneLighting = false;
#if UNITY_2017_2_OR_NEWER
                sceneView.sceneViewState.showFog            = false;
                sceneView.sceneViewState.showMaterialUpdate = false;
                sceneView.sceneViewState.showSkybox         = false;
                sceneView.sceneViewState.showFlares         = false;
                sceneView.sceneViewState.showImageEffects   = false;
#endif
            }

            s_GuiContents          = new GUIContents(UTinyEditorApplication.ContextType);
            m_ModuleSettingsPanel  = new UTinyModuleSettingsPanel(project.Registry, project.Module);
            m_ProjectSettingsPanel = new UTinyProjectSettingsPanel(project.Registry, (UTinyProject.Reference)project);
            m_ModulePanel          = new UTinyModulePanel(project.Registry, (UTinyProject.Reference)project, project.Module, m_ModulePanelState);
            m_EntityGroupPanel     = new UTinyEntityGroupPanel(project.Registry, project.Module, m_ScenePanelState);
            m_TypePanel            = new UTinyTypePanel(project.Registry, project.Module, m_TypePanelState);
            m_CodePanel            = new UTinyCodePanel(project.Registry, project.Module, m_CodePanelState);
            m_AssetPanel           = new UTinyAssetPanel(project.Registry, (UTinyProject.Reference)project, project.Module, m_AssetPanelState);
            m_BuildReportPanel     = new UTinyBuildReportPanel(project.Registry, project.Module, m_BuildReportState);
        }
Esempio n. 2
0
 private void OnCloseProject(UTinyProject project)
 {
     m_ModuleSettingsPanel  = null;
     m_ProjectSettingsPanel = null;
     m_ModulePanel          = null;
     m_EntityGroupPanel     = null;
     m_TypePanel            = null;
     m_CodePanel            = null;
     m_AssetPanel           = null;
     m_BuildReportPanel     = null;
 }