# PackAllAtlases(BuildTarget, bool)

> Pack all the SpriteAtlas Assets in the Project for the particular BuildTarget.

## Definition

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

```csharp
public static void PackAllAtlases(BuildTarget target, bool canCancel = true)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.3/script-reference/unityeditor/buildtarget)): The target build platform.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the user can cancel the operation.
