# AsReadOnlySpan()

> Get the polygon vertices as a read-only span.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public 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. |
