Documentation

Unity Engine

Download Unity

Unity Engine

Pack(SpriteAtlasPackingSettings, SpriteAtlasTextureSettings, PackerData)

Allows custom implementation to pack sprites into textures.
Read time 1 minuteLast updated a month ago

Definition

public abstract bool Pack(SpriteAtlasPackingSettings config, SpriteAtlasTextureSettings setting, ScriptablePacker.PackerData input)

Parameters

The settings to use during the packing process for this Sprite Atlas.

The texture settings for the packed texture generated by Sprite Atlas.

The input data that contains sprite specific information.

Returns

Type

Description

boolReturns true if packing is successful.