# TextureGenerationSettings

> Represents how a texture should be generated from calling TextureGenerator.GenerateTexture.

## Definition

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

```csharp
public struct TextureGenerationSettings
```

## Constructors

| Constructor                                                                                                                                                | Description                                                                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [TextureGenerationSettings(UnityEditor.TextureImporterType)](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/ctor.md) | The Constructor initializes to most common value based on the TetureImporterType you pass in. |

## Properties

| Property                                                                                                                                     | Description                                                                                                                                                                                                                                                                                                                                                            |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [assetPath](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/assetpath.md)                               | Path where the Asset will be placed.                                                                                                                                                                                                                                                                                                                                   |
| [enablePostProcessor](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/enablepostprocessor.md)           | When set to true, the [AssetPostprocessor](/engine/6000.7/script-reference/unityeditor/assetpostprocessor.md) hooks will be called during texture generation. The following will hold for any AssetPostprocessors triggered through [TextureGenerator.GenerateTexture](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerator/generatetexture.md) |
| [platformSettings](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/platformsettings.md)                 | Platform settings for generating the texture.                                                                                                                                                                                                                                                                                                                          |
| [qualifyForSpritePacking](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/qualifyforspritepacking.md)   | Indicates if the [Sprite](/engine/6000.7/script-reference/unityengine/sprite.md) generated can be used for atlas packing.                                                                                                                                                                                                                                              |
| [secondarySpriteTextures](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/secondaryspritetextures.md)   | Secondary textures for the generated Sprites.                                                                                                                                                                                                                                                                                                                          |
| [sourceTextureInformation](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/sourcetextureinformation.md) | Texture format for the image data.                                                                                                                                                                                                                                                                                                                                     |
| [spriteImportData](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/spriteimportdata.md)                 | [Sprite](/engine/6000.7/script-reference/unityengine/sprite.md) Asset generation data.                                                                                                                                                                                                                                                                                 |
| [spritePackingTag](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/spritepackingtag.md)                 | Tag used for Sprite packing.                                                                                                                                                                                                                                                                                                                                           |
| [textureImporterSettings](/engine/6000.7/script-reference/unityeditor/assetimporters/texturegenerationsettings/textureimportersettings.md)   | Settings for generating texture.                                                                                                                                                                                                                                                                                                                                       |
