# SpriteImportData

> Struct that represents how Sprite asset should be generated when calling TextureGenerator.GenerateTexture.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.AssetImporters](/engine/6000.6/script-reference/unityeditor/assetimporters.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public struct SpriteImportData
```

## Properties

| Property                                                                                                                | Description                                                                                                                                                                                                                    |
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [alignment](/engine/6000.6/script-reference/unityeditor/assetimporters/spriteimportdata/alignment.md)                   | Pivot value represented by [SpriteAlignment](/engine/6000.6/script-reference/unityengine/spritealignment.md).                                                                                                                  |
| [border](/engine/6000.6/script-reference/unityeditor/assetimporters/spriteimportdata/border.md)                         | Border value for the generated [Sprite](/engine/6000.6/script-reference/unityengine/sprite.md).                                                                                                                                |
| [name](/engine/6000.6/script-reference/unityeditor/assetimporters/spriteimportdata/name.md)                             | Name for the generated [Sprite](/engine/6000.6/script-reference/unityengine/sprite.md).                                                                                                                                        |
| [outline](/engine/6000.6/script-reference/unityeditor/assetimporters/spriteimportdata/outline.md)                       | Sprite Asset creation uses this outline when it generates the Mesh for the [Sprite](/engine/6000.6/script-reference/unityengine/sprite.md). If this is not given, tesselationDetail will be used to determine the mesh detail. |
| [pivot](/engine/6000.6/script-reference/unityeditor/assetimporters/spriteimportdata/pivot.md)                           | Pivot value represented in [Vector2](/engine/6000.6/script-reference/unityengine/vector2.md).                                                                                                                                  |
| [rect](/engine/6000.6/script-reference/unityeditor/assetimporters/spriteimportdata/rect.md)                             | Position and size of the Sprite in a given texture.                                                                                                                                                                            |
| [spriteID](/engine/6000.6/script-reference/unityeditor/assetimporters/spriteimportdata/spriteid.md)                     | An identifier given to a [Sprite](/engine/6000.6/script-reference/unityengine/sprite.md). Use this to identify which data was used to generate that Sprite.                                                                    |
| [tessellationDetail](/engine/6000.6/script-reference/unityeditor/assetimporters/spriteimportdata/tessellationdetail.md) | Controls mesh generation detail. This value will be ignored if ouline is provided.                                                                                                                                             |
