From 0bc9261fc61b5803dbd61ee393240760a9724f83 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Sat, 29 Dec 2018 20:51:04 +0900 Subject: [PATCH] fix #31; Particle not showing on Android, while on editor it works --- Assets/Coffee/UIExtensions/UIParticle/UIParticle.cs | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 Assets/Coffee/UIExtensions/UIParticle/UIParticle.cs diff --git a/Assets/Coffee/UIExtensions/UIParticle/UIParticle.cs b/Assets/Coffee/UIExtensions/UIParticle/UIParticle.cs old mode 100644 new mode 100755 index 7b86caf..e9b3321 --- a/Assets/Coffee/UIExtensions/UIParticle/UIParticle.cs +++ b/Assets/Coffee/UIExtensions/UIParticle/UIParticle.cs @@ -141,6 +141,10 @@ namespace Coffee.UIExtensions s_TempRelatables.Clear (); _renderer = cachedParticleSystem ? cachedParticleSystem.GetComponent () : null; + if (_renderer && Application.isPlaying) + { + _renderer.enabled = false; + } // Create objects. _mesh = new Mesh ();