Method RebuildMesh
RebuildMesh(ProBuilderMesh, Vector3, Quaternion)
Rebuilds the specified mesh using the existing property values for this shape. This includes building a list of vertices and normals for each face, applying smoothing to the faces if required, and calculating the bounds of the mesh.
Declaration
public abstract Bounds RebuildMesh(ProBuilderMesh mesh, Vector3 size, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh to rebuild. |
Vector3 | size | The position of the opposite corner of the bounding box for this shape. |
Quaternion | rotation | The rotation (orientation) to use for this mesh. |
Returns
Type | Description |
---|---|
Bounds | The bounds calculated for this shape after rebuilding it. |