SpriteAtlasAsset
SpriteAtlasAsset stores inputs for generating SpriteAtlas and generates atlas textures on Import.
Read time 4 minutesLast updated 13 days ago
Definition
- Type: Class
- Namespace: UnityEditor.U2D
- Assembly: UnityEditor.CoreModule
- Inherits from: Object
public class SpriteAtlasAsset : Object
Properties
Property | Description |
|---|---|
| isVariant | Checks whether the Sprite Atlas Importer set the Sprite Atlas as a Variant. |
Methods
Method | Description |
|---|---|
| Add | Add an array of Assets to the packable objects list. |
| GetMasterAtlas | Gets the Master Sprite Atlas for the given Variant Sprite Atlas. |
| Remove | Removes objects from the Atlas's packable objects list. |
| SetIsVariant | Sets whether this Sprite Atlas is a Variant or not. |
| SetMasterAtlas | Sets an Atlas to be the Master Atlas. |
| SetScriptablePacker | Sets the ScriptablePacker ScriptableObject to SpriteAtlasAsset so custom packing can be implemented. |
Static Methods
Method | Description |
|---|---|
| Load | Loads SpriteAtlasAsset at the given path. File extension of SpriteAtlasAsset is *.spriteatlasv2. |
| Save | Saves SpriteAtlasAsset to disk. File extension of SpriteAtlasAsset is *.spriteatlasv2. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |