# Max

> Creates a vector that is made from the largest components of two vectors.

## Definition

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

## Max(Vector3Int, Vector3Int)

Creates a vector that is made from the largest components of two vectors.

```csharp
public static Vector3Int Max(Vector3Int lhs, Vector3Int rhs)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.6/script-reference/unityengine/vector3int)): The first vector to compare.**** (\[Vector3Int]\(/engine/6000.6/script-reference/unityengine/vector3int)): The second vector to compare.

### Returns

| Type                                                                    | Description                                                       |
| ----------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [Vector3Int](/engine/6000.6/script-reference/unityengine/vector3int.md) | A vector that is made from the largest components of two vectors. |

### Remarks

Additional Resources: [Vector3Int.Min](/engine/6000.6/script-reference/unityengine/vector3int/min.md) function.

## Max(Vector3Int, Vector3Int)

Creates a vector that is made from the largest components of two vectors.

```csharp
public static Vector3Int Max(in Vector3Int lhs, in Vector3Int rhs)
```

### Parameters

**** (\[Vector3Int]\(/engine/6000.6/script-reference/unityengine/vector3int)): The first vector to compare.**** (\[Vector3Int]\(/engine/6000.6/script-reference/unityengine/vector3int)): The second vector to compare.

### Returns

| Type                                                                    | Description                                                       |
| ----------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [Vector3Int](/engine/6000.6/script-reference/unityengine/vector3int.md) | A vector that is made from the largest components of two vectors. |

### Remarks

Additional Resources: [Vector3Int.Min](/engine/6000.6/script-reference/unityengine/vector3int/min.md) function.
