fix: UIParticle is scaled by canvas size even when `AutoScalingMode.None` and `ScalingMode.Local`
close #313
parent
433f828ad9
commit
65f7555482
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue