Skip to content

Commit

Permalink
fix: UIParticle is scaled by canvas size even when `AutoScalingMode.N…
Browse files Browse the repository at this point in the history
…one` and `ScalingMode.Local`

close #313
  • Loading branch information
mob-sakai committed Jun 19, 2024
1 parent c95d8c6 commit 63b24d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Packages/src/Runtime/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ public Vector3 scale3D
/// <summary>
/// Particle effect scale.
/// </summary>
public Vector3 scale3DForCalc => autoScalingMode == AutoScalingMode.UIParticle
? m_Scale3D.GetScaled(canvasScale)
: m_Scale3D;
public Vector3 scale3DForCalc => autoScalingMode == AutoScalingMode.Transform
? m_Scale3D
: m_Scale3D.GetScaled(canvasScale);

public List<ParticleSystem> particles => m_Particles;

Expand Down

0 comments on commit 63b24d8

Please sign in to comment.