# GetSpriteMesh(Sprite, bool)

> Returns the generated Sprite mesh positions.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Sprites](/engine/6000.6/script-reference/unityeditor/sprites.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Deprecated.** Use Sprite.vertices API instead. This data is the same for packed and unpacked sprites.

```csharp
public static Vector2[] GetSpriteMesh(Sprite sprite, bool getAtlasData)
```

### Parameters

**** (\[Sprite]\(/engine/6000.6/script-reference/unityengine/sprite)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If [Sprite](/engine/6000.6/script-reference/unityengine/sprite.md) is packed, it is possible to access data as if it was on the atlas texture.

### Returns

| Type                                                                  | Description |
| --------------------------------------------------------------------- | ----------- |
| [Vector2\[\]](/engine/6000.6/script-reference/unityengine/vector2.md) |             |
