AsSpan(int)
Get the shape array as a span.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public Span<Vector2> AsSpan(int count = 8)
Parameters
The number of shape array elements to return.
Returns
Type | Description |
|---|---|
| Span<Vector2> | The span representing the shape array. |