3.0.0-preview.36

# [3.0.0-preview.36](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.35...v3.0.0-preview.36) (2020-09-28)

### Bug Fixes

* do not bake particle system to mesh when the alpha is zero ([1775713](1775713c2d)), closes [#102](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/102)
* in Unity 2018.x, sample import failed on Windows ([f5861b0](f5861b0add))
This commit is contained in:
semantic-release-bot
2020-09-28 12:35:40 +00:00
parent 94ae9d2016
commit 4b4d70bdd1
13 changed files with 92 additions and 125 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Coffee.UIParticleExtensions;
using UnityEngine;
using UnityEngine.Profiling;
@@ -196,6 +197,10 @@ namespace Coffee.UIExtensions
Profiler.EndSample();
}
// #102: Do not bake particle system to mesh when the alpha is zero.
if (Mathf.Approximately( particle.canvasRenderer.GetInheritedAlpha(), 0))
continue;
// Bake main particles.
var r = currentPs.GetComponent<ParticleSystemRenderer>();
if (CanBakeMesh(r))