From 9749e3e01c132509f33b6af88c91f5ec6841fb2f Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 15 Feb 2019 21:49:11 +0900 Subject: [PATCH] fix #39; UIParticle.Scale - Rendering Order Issue --- Scripts/UIParticle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 73f1f91..3b906fe 100755 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -266,7 +266,7 @@ namespace Coffee.UIExtensions if (m_ParticleSystem && canvas) { - if (canvas.renderMode != RenderMode.ScreenSpaceOverlay) + // I do not know why, but it worked fine when setting `transform.localPosition.z` to `0.01`. (#34, #39) { Vector3 pos = rectTransform.localPosition; if (Mathf.Abs (pos.z) < 0.01f)