# SetMinMax(Vector3, Vector3)

> Sets the bounds to the min and max value of the box.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void SetMinMax(Vector3 min, Vector3 max)
```

### Parameters

**** (\[Vector3]\(/engine/6000.0/script-reference/unityengine/vector3)): **** (\[Vector3]\(/engine/6000.0/script-reference/unityengine/vector3)):&#x20;

### Remarks

Using this function is faster than assigning min and max separately.
