Esempio n. 1
0
        public void StopSimulation()
        {
            if (!Application.isPlaying)
            {
                gpuiManager.ClearInstancingData();
            }

            simulateAtEditor          = false;
            Camera.onPreCull         -= CameraOnPreCull;
            EditorApplication.update -= EditorUpdate;
#if UNITY_2017_2_OR_NEWER
            EditorApplication.playModeStateChanged -= HandlePlayModeStateChanged;
#endif
        }
        public void StopSimulation()
        {
            if (!Application.isPlaying)
            {
                gpuiManager.ClearInstancingData();
            }

            simulateAtEditor = false;

#if UNITY_2018_1_OR_NEWER
            if (!GPUInstancerConstants.gpuiSettings.IsStandardRenderPipeline())
#if UNITY_2019_1_OR_NEWER
            { UnityEngine.Rendering.RenderPipelineManager.beginFrameRendering -= CameraOnBeginRenderingSRP; }
#else
            { UnityEngine.Experimental.Rendering.RenderPipeline.beginCameraRendering -= CameraOnPreCull; }