fix: UIParticle is scaled incorrectly with nested canvases

close #313
pull/336/head
mob-sakai 2024-06-18 17:11:34 +09:00
parent 5c41c39847
commit f029b7508e
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,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();