From 6a68933e488a0ca18820b9fabab78302cde34af5 Mon Sep 17 00:00:00 2001 From: wanliyun <243258341@qq.com> Date: Thu, 6 Jul 2023 13:20:50 +0800 Subject: [PATCH] Fix Bug!NeicerOutline color.a Lose when m_UseGraphicAlpha is true! if (m_UseGraphicAlpha) newColor.a = (byte)((newColor.a * verts[i].color.a) / 255); //newColor's type cannot be Color.Should be Color32. --- Runtime/Scripts/Effects/NicerOutline.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Scripts/Effects/NicerOutline.cs b/Runtime/Scripts/Effects/NicerOutline.cs index ed69c62..602e5ee 100644 --- a/Runtime/Scripts/Effects/NicerOutline.cs +++ b/Runtime/Scripts/Effects/NicerOutline.cs @@ -134,7 +134,7 @@ namespace UnityEngine.UI.Extensions start += ApplyText(m_Verts, vh, start); } - private int ApplyOutlineNoGC(List verts, Color color, float x, float y, VertexHelper vh, int startIndex) + private int ApplyOutlineNoGC(List verts, Color32 color, float x, float y, VertexHelper vh, int startIndex) { int length = verts.Count; for (int i = 0; i < length; ++i)