Skip to content

Commit

Permalink
fix: UIParticle.transform.localScale does not scale particles
Browse files Browse the repository at this point in the history
close #313
  • Loading branch information
mob-sakai committed Jun 18, 2024
1 parent 94d957e commit 1581ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/src/Runtime/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public Vector3 scale3D
/// </summary>
public Vector3 scale3DForCalc => autoScalingMode == AutoScalingMode.Transform
? m_Scale3D
: m_Scale3D.GetScaled(canvasScale);
: m_Scale3D.GetScaled(canvasScale, transform.localScale);

public List<ParticleSystem> particles => m_Particles;

Expand Down

0 comments on commit 1581ec5

Please sign in to comment.