fix #31; Particle not showing on Android, while on editor it works

pull/77/head
mob-sakai 2018-12-29 20:51:04 +09:00
parent 1c88502b2b
commit de3c3853a8
1 changed files with 4 additions and 0 deletions

4
UIParticle.cs Normal file → Executable file
View File

@ -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 ();