CreateSpriteAtlas(string, SpriteAtlasRuntimeConfig, AtlasPage[])
Creates a new sprite atlas with the given name and runtime configuration and binds sprites to textures.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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 |