# GenerateAtlas(IEnumerable<Geometry>, uint, bool, bool, bool)

> Generates a Texture2D atlas containing the textures and gradients for the vector geometry.

## Definition

* **Type:** Method
* **Namespace:** [Unity.VectorGraphics](/engine/6000.7/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

```csharp
public static VectorUtils.TextureAtlas GenerateAtlas(IEnumerable<VectorUtils.Geometry> geoms, uint rasterSize, bool generatePOTTexture = true, bool encodeSettings = true, bool linear = true)
```

### Parameters

**** (\[IEnumerable\<Geometry>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): The list of Geometry objects, probably created with TessellateNodeHierarchy**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Maximum size of the generated texture**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Resize the texture to the next power-of-two**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Encode the gradient settings inside the texture**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, the texture will be created in linear colorspace

### Returns

| Type                                                                                             | Description                 |
| ------------------------------------------------------------------------------------------------ | --------------------------- |
| [TextureAtlas](/engine/6000.7/script-reference/unity/vectorgraphics/vectorutils/textureatlas.md) | The generated texture atlas |
