MeshGenerator.Create
Static Method in MeshGenerator
Declaration
public static Mesh Create(int width, int height)Description
Creates a new procedural mesh of a grid of points.
Parameters
| width | The width of the grid of points. |
| height | The height of the grid of points. |
Returns
| Mesh |
Overload
Declaration
public static Mesh Create(int width, int height, MeshGenerator.VertexGenerator vertexGenerator)Description
Creates a new procedural mesh using a custom vertex function.
Parameters
| width | The width of the grid of points. |
| height | The height of the grid of points. |
| vertexGenerator | A custom function to calculate the vertex for a given point. |
Returns
| Mesh |