# CreateSpriteAtlas(string, SpriteAtlasRuntimeConfig, AtlasPage[])

> Creates a new sprite atlas with the given name and runtime configuration and binds sprites to textures.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.U2D](/engine/6000.5/script-reference/unityengine/u2d.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static SpriteAtlas CreateSpriteAtlas(string name, SpriteAtlasRuntimeConfig config, AtlasPage[] pages)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the sprite atlas also used as Tag.**** (\[SpriteAtlasRuntimeConfig]\(/engine/6000.5/script-reference/unityengine/u2d/spriteatlasruntimeconfig)): **** (\[AtlasPage\[]]\(/engine/6000.5/script-reference/unityengine/u2d/atlaspage)): Array of atlas pages containing sprites and packed textures.

### Returns

| Type                                                                          | Description |
| ----------------------------------------------------------------------------- | ----------- |
| [SpriteAtlas](/engine/6000.5/script-reference/unityengine/u2d/spriteatlas.md) |             |
