Method ClearMesh
ClearMesh(RideID, Boolean)
Clears all vertex data and all triangle indices. You should call this function before rebuilding triangles array.
Declaration
void ClearMesh(RideID mesh, bool keepVertexLayout = true)
Parameters
Type | Name | Description |
---|---|---|
RideID | mesh | ID of the mesh. |
System.Boolean | keepVertexLayout | True if the existing Mesh data layout should be preserved. |