From f26920f9825547222a4afbb31cc5dc5a002c3e9b Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:11:34 +0900 Subject: [PATCH] fix: UIParticle is scaled incorrectly with nested canvases close #313 --- Packages/src/Runtime/UIParticleRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/src/Runtime/UIParticleRenderer.cs b/Packages/src/Runtime/UIParticleRenderer.cs index dcfebcd..7e583cd 100644 --- a/Packages/src/Runtime/UIParticleRenderer.cs +++ b/Packages/src/Runtime/UIParticleRenderer.cs @@ -524,7 +524,7 @@ namespace Coffee.UIExtensions && _particleSystem.main.scalingMode == ParticleSystemScalingMode.Local && _parent.canvas) { - scale = scale.GetScaled(_parent.canvas.transform.localScale); + scale = scale.GetScaled(_parent.canvas.rootCanvas.transform.localScale); } Profiler.EndSample();