From cc3e95d8c71ec21dafe6617dbe45699d40eb765d Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:48:08 +0900 Subject: [PATCH] fix: `UIParticle.transform.localScale` does not scale particles close #313 --- Runtime/UIParticle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/UIParticle.cs b/Runtime/UIParticle.cs index cce8314..d6e3632 100644 --- a/Runtime/UIParticle.cs +++ b/Runtime/UIParticle.cs @@ -252,7 +252,7 @@ namespace Coffee.UIExtensions /// public Vector3 scale3DForCalc => autoScalingMode == AutoScalingMode.Transform ? m_Scale3D - : m_Scale3D.GetScaled(canvasScale); + : m_Scale3D.GetScaled(canvasScale, transform.localScale); public List particles => m_Particles;