I’m trying to set a mesh to an exact size in Unity’s units. To do this I am trying:
MeshFilter headerMeshFilter = menuHeaderObj.GetComponent<MeshFilter>();
Mesh headerMesh = headerMeshFilter.mesh;
headerMesh.bounds = new Bounds(Vector3.zero, new Vector3(100, 550, 0));
headerMeshFilter.mesh = headerMesh;
headerMesh.RecalculateBounds();
But the mesh’s size does not change. Is there a step I am missing?