Update UIParticle.cs
fix Profiler.BeginSample -> Profiler.EndSample if a canvas is disabled or a camera doesn't foundpull/77/head
parent
901e7f1647
commit
9665c7400a
|
@ -461,6 +461,7 @@ namespace Coffee.UIExtensions
|
||||||
|
|
||||||
if (!cam)
|
if (!cam)
|
||||||
{
|
{
|
||||||
|
Profiler.EndSample();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (m_IsTrail)
|
if (m_IsTrail)
|
||||||
|
|
Loading…
Reference in New Issue