From 1c88502b2b60eac14189e98da8d86b05d61ab16f Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Sat, 29 Dec 2018 19:38:53 +0900 Subject: [PATCH] close #29; Use shared material during play mode --- UIParticle.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/UIParticle.cs b/UIParticle.cs index 8d4b083..7b86caf 100644 --- a/UIParticle.cs +++ b/UIParticle.cs @@ -59,9 +59,7 @@ namespace Coffee.UIExtensions Profiler.BeginSample ("Check material"); var mat = m_IsTrail ? _renderer.trailMaterial - : Application.isPlaying - ? _renderer.material - : _renderer.sharedMaterial; + : _renderer.sharedMaterial; if (mat && mat.HasProperty (s_IdMainTex)) { tex = mat.mainTexture;