15 {
16 if (!IsActive())
17 {
18 return;
19 }
22 int num = m_Verts.Count * 5;
24 {
25 m_Verts.Capacity = num;
26 }
27 int start = 0;
29 ApplyShadowZeroAlloc(
m_Verts, base.effectColor, start,
m_Verts.Count, base.effectDistance.x, base.effectDistance.y);
30 start = count2;
32 ApplyShadowZeroAlloc(
m_Verts, base.effectColor, start,
m_Verts.Count, base.effectDistance.x, 0f - base.effectDistance.y);
33 start = count3;
35 ApplyShadowZeroAlloc(
m_Verts, base.effectColor, start,
m_Verts.Count, 0f - base.effectDistance.x, base.effectDistance.y);
36 start = count4;
38 ApplyShadowZeroAlloc(
m_Verts, base.effectColor, start,
m_Verts.Count, 0f - base.effectDistance.x, 0f - base.effectDistance.y);
39 Text component = GetComponent<Text>();
40 if (component != null && component.material.shader == Shader.Find("Text Effects/Fancy Text"))
41 {
42 for (int i = 0; i < m_Verts.Count - count; i++)
43 {
45 value.uv1 = new Vector2(0f, 0f);
47 }
48 }
49 vh.Clear();
50 vh.AddUIVertexTriangleStream(
m_Verts);
51 }