Version: 2020.3

SpriteAtlasAsset

class in UnityEditor.U2D

切换到手册

描述

SpriteAtlasAsset stores inputs for generating SpriteAtlas and generates atlas textures on Import.

变量

isVariantChecks whether the Sprite Atlas Importer set the Sprite Atlas as a Variant.

公共函数

Add将一组资源添加到可打包对象列表中。
GetPackingSettingsGets the current SpriteAtlasPackingSettings to use when packing SpriteAtlas.
GetPlatformSettingsGets the platform settings of the build target specified.
GetTextureSettingsGets the SpriteAtlasTextureSettings of packed Textures generated by this SpriteAtlasAsset.
RemoveRemoves objects from the Atlas's packable objects list.
SetIncludeInBuildDefines if the SpriteAtlas's packed Textures that the Importer generates are included in the build with the Sprite after packing is done.
SetIsVariantSets whether this Sprite Atlas is a Variant or not.
SetMasterAtlasSets an Atlas to be the Master Atlas.
SetPackingSettingsSets the SpriteAtlasPackingSettings to use when packing this SpriteAtlas.
SetPlatformSettings设置平台特定的设置。
SetTextureSettingsSets the SpriteAtlasTextureSettings for the packed Texture generated by this SpriteAtlas.
SetVariantScaleSets the value used to downscale the Master's Texture.