# SpriteAtlasExtensions

> Method extensions for SpriteAtlas in Editor.

## Definition

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

```csharp
public static class SpriteAtlasExtensions
```

## Remarks

This method is only exposed to Editor scripts. It is not exposed during Play mode.

## Static Methods

| Method                                                                                                              | Description                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Add](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/add.md)                                 | Add an array of Assets to the packable objects list.                                                                                                                                                                                        |
| [GetMasterAtlas](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/getmasteratlas.md)           | Gets the Master Sprite Atlas for the given Variant Sprite Atlas.                                                                                                                                                                            |
| [GetPackables](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/getpackables.md)               | Return all the current packed packable objects in the atlas.                                                                                                                                                                                |
| [GetPackingSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/getpackingsettings.md)   | Current [SpriteAtlasPackingSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlaspackingsettings.md) to use when packing this [SpriteAtlas](/engine/6000.7/script-reference/unityengine/u2d/spriteatlas.md).                 |
| [GetPlatformSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/getplatformsettings.md) | Returns the platform settings of the build target you specify.                                                                                                                                                                              |
| [GetTextureSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/gettexturesettings.md)   | Current [SpriteAtlasTextureSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlastexturesettings.md) of the packed texture generated by this [SpriteAtlas](/engine/6000.7/script-reference/unityengine/u2d/spriteatlas.md).  |
| [IsIncludeInBuild](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/isincludeinbuild.md)       | Checks whether this Sprite Atlas is marked to be included in the build.                                                                                                                                                                     |
| [Remove](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/remove.md)                           | Remove objects from the atlas's packable objects list.                                                                                                                                                                                      |
| [SetIncludeInBuild](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/setincludeinbuild.md)     | Define if this sprite atlas's packed texture is included in the build with the [Sprite](/engine/6000.7/script-reference/unityengine/sprite.md) after packing is done.                                                                       |
| [SetIsVariant](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/setisvariant.md)               | Sets whether this Sprite Atlas is a variant or not.                                                                                                                                                                                         |
| [SetMasterAtlas](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/setmasteratlas.md)           | Set an atlas to be the master atlas.                                                                                                                                                                                                        |
| [SetPackingSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/setpackingsettings.md)   | Set the [SpriteAtlasPackingSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlaspackingsettings.md) to use when packing this [SpriteAtlas](/engine/6000.7/script-reference/unityengine/u2d/spriteatlas.md)                  |
| [SetPlatformSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/setplatformsettings.md) | Set the platform specific settings.                                                                                                                                                                                                         |
| [SetTextureSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/settexturesettings.md)   | Set the [SpriteAtlasTextureSettings](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlastexturesettings.md) for the packed texture generated by this [SpriteAtlas](/engine/6000.7/script-reference/unityengine/u2d/spriteatlas.md). |
| [SetVariantScale](/engine/6000.7/script-reference/unityeditor/u2d/spriteatlasextensions/setvariantscale.md)         | Set the value used to downscale the master's texture.                                                                                                                                                                                       |
