Ejemplo n.º 1
0
 static UpdateLoop()
 {
     if (editor != null)
     {
         editor.Shutdown();
         editor = null;
     }
     editor = new UpdateLoop();
     editor.Initialize();
 }
Ejemplo n.º 2
0
        void OnSceneUnloaded()
        {
            if (this.initialized)
            {
                this.Shutdown();
            }

            MeshInstanceManager.Shutdown();
            InternalCSGModelManager.Shutdown();

            editor = new UpdateLoop();
            editor.Initialize();
        }
Ejemplo n.º 3
0
        void OnSceneUnloaded()
        {
            if (EditorApplication.isPlayingOrWillChangePlaymode)
            {
                return;
            }

            if (this.initialized)
            {
                this.Shutdown();
            }

            MeshInstanceManager.Shutdown();
            InternalCSGModelManager.Shutdown();

            editor = new UpdateLoop();
            editor.Initialize();
        }
Ejemplo n.º 4
0
        public static void ResetUpdateRoutine()
        {
            if (EditorApplication.isPlayingOrWillChangePlaymode)
            {
                return;
            }

            if (editor != null &&
                !editor.initialized)
            {
                editor = null;
            }
            if (editor == null)
            {
                editor = new UpdateLoop();
                editor.Initialize();
            }

            EditorApplication.update -= RunEditorUpdate;
            EditorApplication.update += RunEditorUpdate;
            InternalCSGModelManager.skipCheckForChanges = false;
        }