# GetDashPattern(Span<float>)

> Copies the current dash pattern into the provided span.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public int GetDashPattern(Span<float> values)
```

### Parameters

**** (\[Span\<float>]\(https\://learn.microsoft.com/dotnet/api/system.span-1)): The destination span. Must have a length greater than or equal to the current dash pattern length. Pass an empty span to query the required length without copying.

### Returns

| Type                                                       | Description                                                                                                                |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of elements in the dash pattern. If `values` is too short to hold the pattern, returns 0 and no data is copied. |
