Problem is not reproducible or outdated
Is it possible to change a vertex (height) after combining meshes?
I can change vertices of a mesh I created, using:
...
Mesh() mesh = new Mesh();
Vector3[] vertices;
mesh = myGameObject.GetComponent<MeshFilter>().mesh;
vertices = myGameObject.GetComponent<MeshFilter>().mesh.vertices;
vertice[index] += Vector3.up * 0.01f;
mesh.vertices = vertices;
myGameObject.GetComponent<MeshFilter>().mesh = mesh;
myGameObject.GetComponent<MeshFilter>().mesh.RecalculateNormals();
....
This works fine but stops working when I first Combine my meshes and then try to change a Vertex. Is this not possible anymore after Combining a mesh using CombineInstance? My combined mesh has a vertex count of 1600, none changes, not even when looping through all Vertices.
Answer by Cursedth · Aug 31, 2017 at 08:53 AM
Solved. You can manipulate single vertices in a combined mesh. Just don't try it in a Upate() call but in Update()
-Facepalm-
Follow this Question
Related Questions
Point on a triangle. 1 Answer
Why vertex positions appear (0.0, 0.0, 0.0) ? 0 Answers
VR transform tree mesh on axe hit 0 Answers
Changing a mesh with C# and Resource.Load() 0 Answers
Invalid vertex array 0 Answers