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.

18 lines
324 B

  1. using UnityEngine;
  2. public class MeshContainer
  3. {
  4. public Mesh mesh;
  5. public Vector3[] vertices;
  6. public Vector3[] normals;
  7. public MeshContainer(Mesh m) {
  8. mesh = m;
  9. vertices = m.vertices;
  10. normals = m.normals;
  11. }
  12. public void Update() {
  13. mesh.vertices = vertices;
  14. mesh.normals = normals;
  15. }
  16. }