Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SpriteAtlasAsset

SpriteAtlasAsset stores inputs for generating SpriteAtlas and generates atlas textures on Import.
Read time 4 minutesLast updated 9 days ago

Definition

public class SpriteAtlasAsset : Object

Properties

Property

Description

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

Methods

Method

Description

AddAdd an array of Assets to the packable objects list.
GetMasterAtlasGets the Master Sprite Atlas for the given Variant Sprite Atlas.
RemoveRemoves objects from the Atlas's packable objects list.
SetIsVariantSets whether this Sprite Atlas is a Variant or not.
SetMasterAtlasSets an Atlas to be the Master Atlas.
SetScriptablePackerSets the ScriptablePacker ScriptableObject to SpriteAtlasAsset so custom packing can be implemented.

Static Methods

Method

Description

LoadLoads SpriteAtlasAsset at the given path. File extension of SpriteAtlasAsset is *.spriteatlasv2.
SaveSaves SpriteAtlasAsset to disk. File extension of SpriteAtlasAsset is *.spriteatlasv2.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.