close #29; Use shared material during play mode
parent
3ca5e225ce
commit
1c88502b2b
|
@ -59,8 +59,6 @@ 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.material
|
|
||||||
: _renderer.sharedMaterial;
|
: _renderer.sharedMaterial;
|
||||||
if (mat && mat.HasProperty (s_IdMainTex))
|
if (mat && mat.HasProperty (s_IdMainTex))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue