diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index f8ecbe5..5753609 100644 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -323,9 +323,13 @@ namespace Coffee.UIExtensions { if (!isActiveAndEnabled) return; - if (m_Renderers.Any(x => !x)) + foreach (var rend in m_Renderers) { - RefreshParticles(particles); + if (!rend) + { + RefreshParticles(particles); + break; + } } var bakeCamera = GetBakeCamera();