# PhysicsShape.ShapeArray

> Fixed vertex shape array.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IEquatable\<ShapeArray>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct PhysicsShape.ShapeArray : IEquatable<PhysicsShape.ShapeArray>
```

## Constructors

| Constructor                                                                                                                                | Description                            |
| ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------- |
| [ShapeArray(System.ReadOnlySpan\{UnityEngine.Vector2})](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/ctor.md) | Construct with the specified vertices. |

## Properties

| Property                                                                                        | Description                   |
| ----------------------------------------------------------------------------------------------- | ----------------------------- |
| [this\[\]](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/item.md)   | Accessor for the shape array. |
| [vertex0](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/vertex0.md) | Vertex #0.                    |
| [vertex1](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/vertex1.md) | Vertex #1.                    |
| [vertex2](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/vertex2.md) | Vertex #2.                    |
| [vertex3](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/vertex3.md) | Vertex #3.                    |
| [vertex4](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/vertex4.md) | Vertex #4.                    |
| [vertex5](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/vertex5.md) | Vertex #5.                    |
| [vertex6](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/vertex6.md) | Vertex #6.                    |
| [vertex7](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/vertex7.md) | Vertex #7.                    |

## Methods

| Method                                                                                                        | Description                                                                                |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [AsReadOnlySpan](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/asreadonlyspan.md) | Get the shape array as a read-only span, callable from a readonly context without copying. |
| [AsSpan](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/shapearray/asspan.md)                 | Get the shape array as a span.                                                             |
