UnityEngine.UI.VertexHelper.Clear C# (CSharp) Method

Clear() public method

Clear all vertices from the stream.

public Clear ( ) : void
return void
        public void Clear()
        {
            this.m_Positions.Clear();
            this.m_Colors.Clear();
            this.m_Uv0S.Clear();
            this.m_Uv1S.Clear();
            this.m_Normals.Clear();
            this.m_Tangents.Clear();
            this.m_Indices.Clear();
        }

Usage Example

コード例 #1
0
ファイル: Outline.cs プロジェクト: NetherDrk/Eternal-Empire
 public override void ModifyMesh(VertexHelper vh)
 {
   if (!this.IsActive())
     return;
   List<UIVertex> list = ListPool<UIVertex>.Get();
   vh.GetUIVertexStream(list);
   int num = list.Count * 5;
   if (list.Capacity < num)
     list.Capacity = num;
   int start1 = 0;
   int count1 = list.Count;
   this.ApplyShadowZeroAlloc(list, (Color32) this.effectColor, start1, list.Count, this.effectDistance.x, this.effectDistance.y);
   int start2 = count1;
   int count2 = list.Count;
   this.ApplyShadowZeroAlloc(list, (Color32) this.effectColor, start2, list.Count, this.effectDistance.x, -this.effectDistance.y);
   int start3 = count2;
   int count3 = list.Count;
   this.ApplyShadowZeroAlloc(list, (Color32) this.effectColor, start3, list.Count, -this.effectDistance.x, this.effectDistance.y);
   int start4 = count3;
   int count4 = list.Count;
   this.ApplyShadowZeroAlloc(list, (Color32) this.effectColor, start4, list.Count, -this.effectDistance.x, -this.effectDistance.y);
   vh.Clear();
   vh.AddUIVertexTriangleStream(list);
   ListPool<UIVertex>.Release(list);
 }
All Usage Examples Of UnityEngine.UI.VertexHelper::Clear