close #29; Use shared material during play mode

pull/77/head
mob-sakai 2018-12-29 19:38:53 +09:00
parent 3ca5e225ce
commit 1c88502b2b
1 changed files with 1 additions and 3 deletions

View File

@ -59,9 +59,7 @@ namespace Coffee.UIExtensions
Profiler.BeginSample ("Check material"); Profiler.BeginSample ("Check material");
var mat = m_IsTrail var mat = m_IsTrail
? _renderer.trailMaterial ? _renderer.trailMaterial
: Application.isPlaying : _renderer.sharedMaterial;
? _renderer.material
: _renderer.sharedMaterial;
if (mat && mat.HasProperty (s_IdMainTex)) if (mat && mat.HasProperty (s_IdMainTex))
{ {
tex = mat.mainTexture; tex = mat.mainTexture;