# PackAtlases(SpriteAtlas[], BuildTarget, bool)

> Pack all the provided SpriteAtlas for the particular BuildTarget.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.U2D](/engine/6000.7/script-reference/unityeditor/u2d.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void PackAtlases(SpriteAtlas[] atlases, BuildTarget target, bool canCancel = true)
```

### Parameters

**** (\[SpriteAtlas\[]]\(/engine/6000.7/script-reference/unityengine/u2d/spriteatlas)): An array containing the atlases to pack.**** (\[BuildTarget]\(/engine/6000.7/script-reference/unityeditor/buildtarget)): The target build platform.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the user can cancel the operation.
