mesh problem + script manipulation by

hello guys i got a plane model and it has 10k vertices.

void Update ()	{



		
		for (int i = 0; i < WaveMeshVertices.Length; i++)
		{	
				
			WaveMeshVertices[i].y = 0.1f + Mathf.Sin(Time.time + WaveMeshVertices[i].z * 1f + WaveMeshVertices[i].x * 1f);
		
		}

		this.GetComponent<MeshFilter>().mesh.vertices = WaveMeshVertices;
	
		
		

		
		

	}

when i loop through every mesh in the update section of the script , the model become invisible… any idea ?

Try looking from the other side too; polygons are only visible from one direction. Also, make sure your triangles array is updated as needed.