From 6aed8a5cf13145e6291e4e95ee6774d5e5b4b3b8 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 12 Apr 2021 09:42:52 +0800 Subject: +effect --- Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers') diff --git a/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs b/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs index c0b7cfb..e0a813c 100644 --- a/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs +++ b/Assets/uGUI-2017.1/UnityEngine.UI/UI/Core/VertexModifiers/Shadow.cs @@ -76,6 +76,7 @@ namespace UnityEngine.UI } } + //x,yÊÇÆ«ÒÆÁ¿ protected void ApplyShadowZeroAlloc(List verts, Color32 color, int start, int end, float x, float y) { UIVertex vt; @@ -93,9 +94,11 @@ namespace UnityEngine.UI v.x += x; v.y += y; vt.position = v; + var newColor = color; if (m_UseGraphicAlpha) newColor.a = (byte)((newColor.a * verts[i].color.a) / 255); + vt.color = newColor; verts[i] = vt; } -- cgit v1.1-26-g67d0