コード例 #1
0
        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();
        }
コード例 #2
0
        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();
            }
        }