# GetBaseVertex(int)

> Gets the base vertex index of the given /sub-mesh/.

## Definition

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

```csharp
public uint GetBaseVertex(int submesh)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The sub-mesh index. See [Mesh.subMeshCount](/engine/6000.5/script-reference/unityengine/mesh/submeshcount.md).

### Returns

| Type                                                         | Description                                                |
| ------------------------------------------------------------ | ---------------------------------------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The offset applied to all vertex indices of this sub-mesh. |

### Remarks

The base vertex can be used to achieve meshes that are larger than 65535 vertices while using 16 bit index buffers, as long as each sub-mesh fits within its own 65535 vertex area. Alternatively, 32 bit index buffers can be used via [Mesh.indexFormat](/engine/6000.5/script-reference/unityengine/mesh/indexformat.md).

Additional Resources: [Mesh.SetIndices](/engine/6000.5/script-reference/unityengine/mesh/setindices.md).
