You've already forked ParticleEffectForUGUI
mirror of
https://github.com/mob-sakai/ParticleEffectForUGUI.git
synced 2026-05-14 20:20:06 +00:00
fix #31; Particle not showing on Android, while on editor it works
This commit is contained in:
4
UIParticle.cs
Normal file → Executable file
4
UIParticle.cs
Normal file → Executable 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 ();
|
||||
|
||||
Reference in New Issue
Block a user