Esempio n. 1
0
 public void UpdateMesh()
 {
     if (!MeshObject)
     {
         MeshObject = new UnityEngine.Mesh();
     }
     MeshObject.vertices = _points.ToArray();
     MeshObject.colors   = _colors.ToArray();
     MeshObject.SetIndices(_indices, MeshTopology.Lines, 0);
     MeshObject.UploadMeshData(false);
 }