SpriteAtlasAsset

class in UnityEditor.U2D

/

Hereda de:Object

Cambiar al Manual

Descripción

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

Variables

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

Funciones Públicas

AddAdd an array of Assets to the packable objects list.
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.
SetPlatformSettingsSet the platform specific settings.
SetTextureSettingsSets the SpriteAtlasTextureSettings for the packed Texture generated by this SpriteAtlas.
SetVariantScaleSets the value used to downscale the Master's Texture.

Miembros heredados

Variables

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the object.

Funciones Estáticas

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
InstantiateClona el objeto original y devuelve el clon.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.