Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public static SpriteAtlas CreateSpriteAtlas(string name, SpriteAtlasRuntimeConfig config, AtlasPage[] pages)

Parameters

name

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