You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 12:10:08 +00:00
fix: remove unnecessary per-frame allocation.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user