# AsReadOnlySpan()

> Get the convex-hull vertices as a read-only span.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public readonly ReadOnlySpan<Vector2> AsReadOnlySpan()
```

### Returns

| Type                                                                                   | Description                                                   |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| [ReadOnlySpan\<Vector2>](https://learn.microsoft.com/dotnet/api/system.readonlyspan-1) | The read-only span representing the vertices in the geometry. |
