fix: remove unnecessary per-frame allocation.
parent
a4bcf93022
commit
e92b514624
|
@ -323,9 +323,13 @@ namespace Coffee.UIExtensions
|
|||
{
|
||||
if (!isActiveAndEnabled) return;
|
||||
|
||||
if (m_Renderers.Any(x => !x))
|
||||
foreach (var rend in m_Renderers)
|
||||
{
|
||||
if (!rend)
|
||||
{
|
||||
RefreshParticles(particles);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var bakeCamera = GetBakeCamera();
|
||||
|
|
Loading…
Reference in New Issue