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.pull/446/head
parent
d2b10980e3
commit
6a68933e48
|
@ -134,7 +134,7 @@ namespace UnityEngine.UI.Extensions
|
||||||
start += ApplyText(m_Verts, vh, start);
|
start += ApplyText(m_Verts, vh, start);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int ApplyOutlineNoGC(List<UIVertex> verts, Color color, float x, float y, VertexHelper vh, int startIndex)
|
private int ApplyOutlineNoGC(List<UIVertex> verts, Color32 color, float x, float y, VertexHelper vh, int startIndex)
|
||||||
{
|
{
|
||||||
int length = verts.Count;
|
int length = verts.Count;
|
||||||
for (int i = 0; i < length; ++i)
|
for (int i = 0; i < length; ++i)
|
||||||
|
|
Loading…
Reference in New Issue