UnityEngine.UI.Shadow.ApplyShadowZeroAlloc C# (CSharp) Method

ApplyShadowZeroAlloc() protected method

protected ApplyShadowZeroAlloc ( List verts, Color32 color, int start, int end, float x, float y ) : void
verts List
color Color32
start int
end int
x float
y float
return void
        protected void ApplyShadowZeroAlloc(List<UIVertex> verts, Color32 color, int start, int end, float x, float y)
        {
            int num = (verts.Count + end) - start;
            if (verts.Capacity < num)
            {
                verts.Capacity = num;
            }
            for (int i = start; i < end; i++)
            {
                UIVertex item = verts[i];
                verts.Add(item);
                Vector3 position = item.position;
                position.x += x;
                position.y += y;
                item.position = position;
                Color32 color2 = color;
                if (this.m_UseGraphicAlpha)
                {
                    UIVertex vertex2 = verts[i];
                    color2.a = (byte) ((color2.a * vertex2.color.a) / 0xff);
                }
                item.color = color2;
                verts[i] = item;
            }
        }