fix #31; Particle not showing on Android, while on editor it works
parent
1c88502b2b
commit
de3c3853a8
|
@ -141,6 +141,10 @@ namespace Coffee.UIExtensions
|
||||||
s_TempRelatables.Clear ();
|
s_TempRelatables.Clear ();
|
||||||
|
|
||||||
_renderer = cachedParticleSystem ? cachedParticleSystem.GetComponent<ParticleSystemRenderer> () : null;
|
_renderer = cachedParticleSystem ? cachedParticleSystem.GetComponent<ParticleSystemRenderer> () : null;
|
||||||
|
if (_renderer && Application.isPlaying)
|
||||||
|
{
|
||||||
|
_renderer.enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Create objects.
|
// Create objects.
|
||||||
_mesh = new Mesh ();
|
_mesh = new Mesh ();
|
||||||
|
|
Loading…
Reference in New Issue