From 9665c7400af2265e2a92992e115d8d7157cf7a85 Mon Sep 17 00:00:00 2001 From: fd_crash <1884654+ShutovPS@users.noreply.github.com> Date: Sat, 27 Jun 2020 13:09:08 +0300 Subject: [PATCH] Update UIParticle.cs fix Profiler.BeginSample -> Profiler.EndSample if a canvas is disabled or a camera doesn't found --- Scripts/UIParticle.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index b45235d..248f435 100755 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -461,6 +461,7 @@ namespace Coffee.UIExtensions if (!cam) { + Profiler.EndSample(); return; } if (m_IsTrail)