fix #39; UIParticle.Scale - Rendering Order Issue

pull/77/head
mob-sakai 2019-02-15 21:49:11 +09:00
parent 8c674cba2e
commit 9749e3e01c
1 changed files with 1 additions and 1 deletions

View File

@ -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)