기술 자료

Unity Engine

Unity Engine

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분최근 업데이트: 한 달 전

Definition

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

boolReturns true if packing is successful.