Update UIParticle.cs

fix Profiler.BeginSample -> Profiler.EndSample if a canvas is disabled or a camera doesn't found
pull/77/head
fd_crash 2020-06-27 13:09:08 +03:00 committed by GitHub
parent 901e7f1647
commit 9665c7400a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -461,6 +461,7 @@ namespace Coffee.UIExtensions
if (!cam)
{
Profiler.EndSample();
return;
}
if (m_IsTrail)