CreateSpriteAtlas(string, SpriteAtlasRuntimeConfig, AtlasPage[])
Creates a new sprite atlas with the given name and runtime configuration and binds sprites to textures.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.U2D
- Assembly: UnityEngine.CoreModule
public static SpriteAtlas CreateSpriteAtlas(string name, SpriteAtlasRuntimeConfig config, AtlasPage[] pages)
Parameters
The name of the sprite atlas also used as Tag.
Array of atlas pages containing sprites and packed textures.
Returns
Type | Description |
|---|---|
| SpriteAtlas |