Which namespace is required for VertexHelper functions?
I get this error:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Vectorgrapics : MonoBehaviour {
// Use this for initialization
void Start () {
Color32 color32 = Color.red;
using (var vh = new VertexHelper())
{
vh.AddVert(new Vector3(0, 0), color32, new Vector2(0f, 0f));
vh.AddVert(new Vector3(0, 100), color32, new Vector2(0f, 1f));
vh.AddVert(new Vector3(100, 100), color32, new Vector2(1f, 1f));
vh.AddVert(new Vector3(100, 0), color32, new Vector2(1f, 0f));
vh.AddTriangle(0,1,2);
vh.AddTriangle(2,3,0);
vh.FillMesh(m);
}
}
// Update is called once per frame
void Update () {
}
}