# GetSplineMeshCount()

> Gets the number of submeshes.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.U2D](/engine/6000.3/script-reference/unityengine/u2d.md)
* **Assembly:** UnityEngine.SpriteShapeModule

```csharp
public int GetSplineMeshCount()
```

### Returns

| Type                                                       | Description                      |
| ---------------------------------------------------------- | -------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Returns the number of submeshes. |
