From 82f81efd7e4ea06465e24f44f96d9726a1a60cc8 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Thu, 29 Oct 2020 01:36:58 +0900 Subject: [PATCH] fix: compile error in 2018.2 --- Scripts/UIParticleUpdater.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/UIParticleUpdater.cs b/Scripts/UIParticleUpdater.cs index 3b66271..2907549 100755 --- a/Scripts/UIParticleUpdater.cs +++ b/Scripts/UIParticleUpdater.cs @@ -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();