Fit(SpriteAtlasPackingSettings, SpriteAtlasTextureSettings, PackerData)
Function to query where the Sprites will be packed in an Atlas without generating textures. Used for tools and previews.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor.U2D
- Assembly: UnityEditor
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. |