Method CreateCubeMesh
CreateCubeMesh(Vector3, Vector3)
Creates a cube mesh.
Declaration
public static Mesh CreateCubeMesh(Vector3 min, Vector3 max)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | min | Minimum corner coordinates in local space. |
Vector3 | max | Maximum corner coordinates in local space. |
Returns
Type | Description |
---|---|
Mesh | A new instance of a cube Mesh. |