From 031d46a3216c942d2d1a6ccfadf5f0b9e3ce3006 Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Tue, 24 Mar 2026 17:50:45 +0900 Subject: [PATCH] fix: ignore "EditorOnly" tagged gameObjects on refresh --- Packages/src/Runtime/UIParticle.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Packages/src/Runtime/UIParticle.cs b/Packages/src/Runtime/UIParticle.cs index b90a309..3f3ffa6 100644 --- a/Packages/src/Runtime/UIParticle.cs +++ b/Packages/src/Runtime/UIParticle.cs @@ -543,7 +543,9 @@ namespace Coffee.UIExtensions for (var i = particles.Count - 1; 0 <= i; i--) { var ps = particles[i]; - if (!ps || ps.GetComponentInParent(true) != this) + if (!ps + || ps.gameObject.CompareTag("EditorOnly") // Ignore "EditorOnly" tagged ParticleSystems. + || ps.GetComponentInParent(true) != this) // Ignore ParticleSystems that are not under this UIParticle. { particles.RemoveAt(i); }