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 6 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.
Runtime configuration for the sprite atlas, including scale multiplier.
Array of atlas pages containing sprites and packed textures.
Returns
Type | Description |
|---|---|
| SpriteAtlas |