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

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

4
Assets/Coffee/UIExtensions/UIParticle/UIParticle.cs Normal file → Executable file
View File

@ -141,6 +141,10 @@ namespace Coffee.UIExtensions
s_TempRelatables.Clear ();
_renderer = cachedParticleSystem ? cachedParticleSystem.GetComponent<ParticleSystemRenderer> () : null;
if (_renderer && Application.isPlaying)
{
_renderer.enabled = false;
}
// Create objects.
_mesh = new Mesh ();