fix: compile error in 2018.2

pull/120/head
mob-sakai 2020-10-29 01:36:58 +09:00
parent af5f7e90b0
commit 82f81efd7e
1 changed files with 2 additions and 0 deletions

View File

@ -211,9 +211,11 @@ namespace Coffee.UIExtensions
Profiler.EndSample();
}
#if UNITY_2018_3_OR_NEWER
// #102: Do not bake particle system to mesh when the alpha is zero.
if (Mathf.Approximately(particle.canvasRenderer.GetInheritedAlpha(), 0))
continue;
#endif
// Bake main particles.
var r = currentPs.GetComponent<ParticleSystemRenderer>();