fix: inactive ParticleSystems are removed from the list on refresh

This commit is contained in:
mob-sakai
2023-08-17 17:48:48 +09:00
parent 2fe0bde422
commit 4851a1880e
4 changed files with 41 additions and 5 deletions

View File

@@ -248,7 +248,7 @@ namespace Coffee.UIExtensions
return;
}
_uiParticle = m_ParticleSystem.GetComponentInParent<UIParticle>();
_uiParticle = m_ParticleSystem.GetComponentInParent<UIParticle>(true);
if (_uiParticle && !_uiParticle.particles.Contains(m_ParticleSystem))
{
_uiParticle = null;