# Add(SpriteAtlas, Object[])

> Add an array of Assets to the packable objects list.

## Definition

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

```csharp
public static void Add(this SpriteAtlas spriteAtlas, Object[] objects)
```

### Parameters

**** (\[SpriteAtlas]\(/engine/6000.5/script-reference/unityengine/u2d/spriteatlas)): **** (\[Object\[]]\(/engine/6000.5/script-reference/unityengine/object)): Array of [Object](/engine/6000.5/script-reference/unityengine/object.md) to be packed into the atlas.

### Remarks

At this moment, only [Sprite](/engine/6000.5/script-reference/unityengine/sprite.md), [Texture2D](/engine/6000.5/script-reference/unityengine/texture2d.md) and the Folder are allowed to be packable objects.

* "Sprite" will be packed directly.

* Each "sprite" in the "Texture2D" will be packed.

* Folder will be traversed. Each "Texture2D" child will be packed. Sub folder will be traversed.
