fix: UIParticle is scaled incorrectly with nested canvases
close #313
parent
1b8f0aac4a
commit
433f828ad9
|
@ -508,7 +508,7 @@ namespace Coffee.UIExtensions
|
|||
&& _particleSystem.main.scalingMode == ParticleSystemScalingMode.Local
|
||||
&& _parent.canvas)
|
||||
{
|
||||
scale = scale.GetScaled(_parent.canvas.transform.localScale);
|
||||
scale = scale.GetScaled(_parent.canvas.rootCanvas.transform.localScale);
|
||||
}
|
||||
|
||||
Profiler.EndSample();
|
||||
|
|
Loading…
Reference in New Issue