static UpdateLoop() { if (editor != null) { editor.Shutdown(); editor = null; } editor = new UpdateLoop(); editor.Initialize(); }
void OnSceneUnloaded() { if (this.initialized) { this.Shutdown(); } MeshInstanceManager.Shutdown(); InternalCSGModelManager.Shutdown(); editor = new UpdateLoop(); editor.Initialize(); }
void OnSceneUnloaded() { if (EditorApplication.isPlayingOrWillChangePlaymode) { return; } if (this.initialized) { this.Shutdown(); } MeshInstanceManager.Shutdown(); InternalCSGModelManager.Shutdown(); editor = new UpdateLoop(); editor.Initialize(); }
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; }