From 298dc9a09356a01fd34434f41805e5fc136cb9ee 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 --- Runtime/UIParticle.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/UIParticle.cs b/Runtime/UIParticle.cs index b90a309..3f3ffa6 100644 --- a/Runtime/UIParticle.cs +++ b/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); }