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

close #313
mob-sakai 2024-06-18 17:47:45 +09:00
parent c95d8c6b17
commit 63b24d8a8b
1 changed files with 3 additions and 3 deletions

View File

@ -275,9 +275,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;