1using System.Collections.Generic;
5[AddComponentMenu(
"UI/ToJ Effects/Soft Shadow", 3)]
6[RequireComponent(typeof(Text))]
15 private List<UIVertex>
m_Verts =
new List<UIVertex>();
26 if (base.graphic !=
null)
28 base.graphic.SetVerticesDirty();
42 if (base.graphic !=
null)
44 base.graphic.SetVerticesDirty();
61 Text component = GetComponent<Text>();
66 num = m_Verts.Count - component.cachedTextGenerator.characterCountVisible * 6;
67 num2 = component.cachedTextGenerator.characterCountVisible * 6;
69 Color color = base.effectColor;
73 ApplyShadowZeroAlloc(
m_Verts, color, start,
m_Verts.Count, base.effectDistance.x, base.effectDistance.y);
74 for (
int i = -1; i <= 1; i++)
76 for (
int j = -1; j <= 1; j++)
88 List<UIVertex> range =
m_Verts.GetRange(0, count - num2);
89 m_Verts.RemoveRange(0, count - num2);
92 if (component.material.shader == Shader.Find(
"Text Effects/Fancy Text"))
94 for (
int k = 0; k < m_Verts.Count - count; k++)
97 value.uv1 =
new Vector2(0f, 0f);
102 vh.AddUIVertexTriangleStream(
m_Verts);
bool onlyInitialCharactersDropShadow
bool m_OnlyInitialCharactersDropShadow
override void ModifyMesh(VertexHelper vh)