public virtual void OnDisable() { ExitBlueprintEditMode(); #if (UNITY_2019_1_OR_NEWER) RenderPipelineManager.beginCameraRendering -= renderCallback; #endif Camera.onPreCull -= DrawWithCamera; ObiParticleEditorDrawing.DestroyParticlesMesh(); foreach (var tool in tools) { tool.OnDisable(); tool.OnDestroy(); } foreach (var renderMode in renderModes) { renderMode.OnDestroy(); } properties.Clear(); renderModes.Clear(); }
public virtual void OnDisable() { ExitBlueprintEditMode(); Camera.onPreCull -= DrawWithCamera; ObiParticleEditorDrawing.DestroyParticlesMesh(); foreach (var tool in tools) { tool.OnDisable(); tool.OnDestroy(); } foreach (var renderMode in renderModes) { renderMode.OnDestroy(); } }