# GetIndexCount(int)

> Gets the index count of the given /sub-mesh/.

## Definition

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

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

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                         | Description |
| ------------------------------------------------------------ | ----------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) |             |

### Remarks

Additional Resources: [Mesh.SetIndices](/engine/6000.0/script-reference/unityengine/mesh/setindices.md), [Mesh.GetIndexStart](/engine/6000.0/script-reference/unityengine/mesh/getindexstart.md).
