fix #15; Canvas.scaleFactor not take into account

pull/77/head
mob-sakai 2018-12-10 21:19:29 +09:00
parent 60ab2b5c3f
commit cba73e5e08
1 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ namespace Coffee.UIExtensions
CheckTrail ();
Profiler.EndSample ();
if (m_ParticleSystem)
if (m_ParticleSystem && canvas)
{
Profiler.BeginSample ("Disable ParticleSystemRenderer");
if (Application.isPlaying)
@ -232,7 +232,7 @@ namespace Coffee.UIExtensions
Profiler.EndSample ();
Profiler.BeginSample ("Make Matrix");
var s = scale;
var s = scale * canvas.scaleFactor;
scaleaMatrix = Matrix4x4.Scale (new Vector3 (s, s, s));
Matrix4x4 matrix = default (Matrix4x4);
switch (m_ParticleSystem.main.simulationSpace)