Pack(SpriteAtlasPackingSettings, SpriteAtlasTextureSettings, PackerData)
Allows custom implementation to pack sprites into textures.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor.U2D
- Assembly: UnityEditor.CoreModule
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 |
|---|---|
| bool | Returns true if packing is successful. |