You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
324 B

using UnityEngine;
public class MeshContainer
{
public Mesh mesh;
public Vector3[] vertices;
public Vector3[] normals;
public MeshContainer(Mesh m) {
mesh = m;
vertices = m.vertices;
normals = m.normals;
}
public void Update() {
mesh.vertices = vertices;
mesh.normals = normals;
}
}