# AsReadOnlySpan(int)

> Get the shape array as a read-only span, callable from a readonly context without copying.

## 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(int count = 8)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of shape array elements to return.

### Returns

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