# ScriptablePacker.SpriteData

> A struct containing sprite specific data to pack sprites.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.U2D](/engine/6000.7/script-reference/unityeditor/u2d.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public struct ScriptablePacker.SpriteData
```

## Fields

| Value                                                                                                       | Description                                                                     |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [guid](/engine/6000.7/script-reference/unityeditor/u2d/scriptablepacker/spritedata/guid.md)                 | GUID to uniquely identify the sprite in data arrays.                            |
| [indexCount](/engine/6000.7/script-reference/unityeditor/u2d/scriptablepacker/spritedata/indexcount.md)     | The number of indices in the sprite geometry.                                   |
| [indexOffset](/engine/6000.7/script-reference/unityeditor/u2d/scriptablepacker/spritedata/indexoffset.md)   | Offset of indices in the indexData from where actual indices can be fetched.    |
| [output](/engine/6000.7/script-reference/unityeditor/u2d/scriptablepacker/spritedata/output.md)             | Output data of a packable sprite.                                               |
| [rect](/engine/6000.7/script-reference/unityeditor/u2d/scriptablepacker/spritedata/rect.md)                 | The input TextureRect information of the source sprite.                         |
| [texIndex](/engine/6000.7/script-reference/unityeditor/u2d/scriptablepacker/spritedata/texindex.md)         | Index of the texture in textureData array.                                      |
| [vertexCount](/engine/6000.7/script-reference/unityeditor/u2d/scriptablepacker/spritedata/vertexcount.md)   | Number of vertices in the sprite geometry.                                      |
| [vertexOffset](/engine/6000.7/script-reference/unityeditor/u2d/scriptablepacker/spritedata/vertexoffset.md) | Offset of vertices in the vertexData from where actual vertices can be fetched. |
