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

widthThe width of the grid of points.
heightThe 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

widthThe width of the grid of points.
heightThe height of the grid of points.
vertexGeneratorA custom function to calculate the vertex for a given point.

Returns

Mesh