# SpriteImportData

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

## Definition

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

```csharp
public struct SpriteImportData
```

## Properties

| Property                                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [alignment](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/alignment.md)                   | Pivot value represented by [SpriteAlignment](/engine/7000.0/script-reference/unityengine/spritealignment.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [border](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/border.md)                         | Border value for the generated [Sprite](/engine/7000.0/script-reference/unityengine/sprite.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [indices](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/indices.md)                       | The triangles of the mesh to generate the [Sprite](/engine/7000.0/script-reference/unityengine/sprite.md) with, as three indices into [SpriteImportData.vertices](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/vertices.md) per triangle.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [name](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/name.md)                             | Name for the generated [Sprite](/engine/7000.0/script-reference/unityengine/sprite.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [outline](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/outline.md)                       | Sprite Asset creation uses this outline when it generates the Mesh for the [Sprite](/engine/7000.0/script-reference/unityengine/sprite.md). If this is not given, tesselationDetail will be used to determine the mesh detail.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [pivot](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/pivot.md)                           | Pivot value represented in [Vector2](/engine/7000.0/script-reference/unityengine/vector2.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [rect](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/rect.md)                             | Position and size of the Sprite in a given texture.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [spriteID](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/spriteid.md)                     | An identifier given to a [Sprite](/engine/7000.0/script-reference/unityengine/sprite.md). Use this to identify which data was used to generate that Sprite.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [tessellationDetail](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/tessellationdetail.md) | Controls mesh generation detail. This value will be ignored if ouline is provided.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [vertices](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/vertices.md)                     | The vertices of the mesh to generate the [Sprite](/engine/7000.0/script-reference/unityengine/sprite.md) with, in pixels from the corner of [SpriteImportData.rect](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/rect.md). Supply these together with [SpriteImportData.indices](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/indices.md) to use a mesh of your own instead of one generated from the texture, in which case [SpriteImportData.outline](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/outline.md) and [SpriteImportData.tessellationDetail](/engine/7000.0/script-reference/unityeditor/assetimporters/spriteimportdata/tessellationdetail.md) are ignored. |
