You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 20:20:06 +00:00
close #29; Use shared material during play mode
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user