Fit(SpriteAtlasPackingSettings, SpriteAtlasTextureSettings, PackerData)
Function to query where the Sprites will be packed in an Atlas without generating textures. Used for tools and previews.
Read time 1 minuteLast updated 9 days ago
Definition
- Type: Method
- Namespace: UnityEditor.U2D
- Assembly: UnityEditor.CoreModule
protected virtual bool Fit(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. |