diff --git a/Scripts/UIParticleRenderer.cs b/Scripts/UIParticleRenderer.cs index ea2fa76..1d19774 100644 --- a/Scripts/UIParticleRenderer.cs +++ b/Scripts/UIParticleRenderer.cs @@ -278,7 +278,7 @@ namespace Coffee.UIExtensions // Bake mesh. Profiler.BeginSample("[UIParticleRenderer] Bake Mesh"); - if (_isTrail && _parent.canSimulate) + if (_isTrail && _parent.canSimulate && 0 < s_CombineInstances[0].mesh.vertexCount) { _renderer.BakeTrailsMesh(s_CombineInstances[0].mesh, bakeCamera, true); }