From 00be26d4ceab53317d22c53f4592350561bc57d8 Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Mon, 8 Jun 2026 13:11:39 +0900 Subject: [PATCH] fix: potential access to UIParticleRenderer that has already been destroyed close #403 --- Runtime/UIParticle.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Runtime/UIParticle.cs b/Runtime/UIParticle.cs index 3f3ffa6..0146f67 100644 --- a/Runtime/UIParticle.cs +++ b/Runtime/UIParticle.cs @@ -358,6 +358,7 @@ namespace Coffee.UIExtensions _isScaleStored = false; UIParticleUpdater.Unregister(this); + _renderers.RemoveAll(r => r == null); _renderers.ForEach(r => r.Reset()); UnregisterDirtyMaterialCallback(UpdateRendererMaterial);