Pack(SpriteAtlasPackingSettings, SpriteAtlasTextureSettings, PackerData)
Allows custom implementation to pack sprites into textures.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.U2D
- Assembly: UnityEditor
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. |