Method FitToSize
FitToSize(ProBuilderMesh, Bounds, Vector3)
Scales mesh vertices to fit within a bounding box.
Declaration
public static void FitToSize(ProBuilderMesh mesh, Bounds currentSize, Vector3 sizeToFit)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh to scale. |
Bounds | currentSize | The bounding box that defines the mesh's shape. |
Vector3 | sizeToFit | The new size to fit mesh contents within. |