public VertexElement() { this.Vertices = VertexListPool <Vector3> .Alloc(); this.UVs = VertexListPool <Vector2> .Alloc(); this.Colors = VertexListPool <Color32> .Alloc(); this.Indices = VertexListPool <int> .Alloc(); }
public void Free() { VertexListPool <Vector3> .Free(this.Vertices); VertexListPool <Color32> .Free(this.Colors); VertexListPool <Vector2> .Free(this.UVs); VertexListPool <int> .Free(this.Indices); this.Vertices = null; this.Colors = null; this.UVs = null; this.Indices = null; }