文档

Unity Engine

Download Unity

Unity Engine

CreateSpriteAtlas(string, SpriteAtlasRuntimeConfig, AtlasPage[])

Creates a new sprite atlas with the given name and runtime configuration and binds sprites to textures.
阅读时间1 分钟最后更新于 1 个月前

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