Method UpdateBounds
UpdateBounds(ProBuilderMesh, Vector3, Quaternion, Bounds)
Allows the user to redefine the default bounding box for this shape.
Declaration
public virtual Bounds UpdateBounds(ProBuilderMesh mesh, Vector3 size, Quaternion rotation, Bounds bounds)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh to find the bounds for. |
Vector3 | size | The desired size for the shape defined when using the Shape Tool. |
Quaternion | rotation | The rotation (orientation) to use for this mesh. |
Bounds | bounds | The default bounds computed for the shape. |
Returns
Type | Description |
---|---|
Bounds | The bounds from this shape's bounds property. |