# GetTopology(int)

> Gets the topology of a sub-mesh.

## Definition

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

```csharp
public MeshTopology GetTopology(int submesh)
```

### Parameters

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

### Returns

| Type                                                                        | Description |
| --------------------------------------------------------------------------- | ----------- |
| [MeshTopology](/engine/6000.0/script-reference/unityengine/meshtopology.md) |             |

### Remarks

Additional Resources: [MeshTopology](/engine/6000.0/script-reference/unityengine/meshtopology.md) enum, [Mesh.SetIndices](/engine/6000.0/script-reference/unityengine/mesh/setindices.md) function.
