fix: potential access to UIParticleRenderer that has already been destroyed

close #403
This commit is contained in:
mob-sakai
2026-06-08 13:11:39 +09:00
parent 34588b6e5c
commit 00be26d4ce

View File

@@ -358,6 +358,7 @@ namespace Coffee.UIExtensions
_isScaleStored = false;
UIParticleUpdater.Unregister(this);
_renderers.RemoveAll(r => r == null);
_renderers.ForEach(r => r.Reset());
UnregisterDirtyMaterialCallback(UpdateRendererMaterial);