fix: UIParticle is scaled by canvas size even when `AutoScalingMode.None` and `ScalingMode.Local`

close #313
pull/318/head
mob-sakai 2024-06-18 17:47:45 +09:00
parent 5505247a94
commit 54a4b1cdfd
1 changed files with 3 additions and 3 deletions

View File

@ -250,9 +250,9 @@ namespace Coffee.UIExtensions
/// <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;