public enum Face{ xy, zx, yz, }; Mesh mesh; //Start()では間に合わないので注意 void Awake () { GetComponent<MeshFilter>().mesh = mesh = new Mesh(); mesh.Clear(); } Vector2[] uvs; int[] lines; Color[] pointColor; public void draw (Vector3[] vertices,Color color,Face face) { lines = new int[(vertices.Length-1)*2]; uvs = new Vector2[vertices.Length]; pointColor = new Color[vertices.Length]; GetComponent<MeshRende