Sprite Atlas Type
A named sprite atlas created from the image sets contained in the folder. The sprite atlas can be loaded using the textureNamed:
method of SKTextureAtlas
. Individual images can be loaded using imageNamed:
in iOS 9 and later.
Extension
.spriteatlas
Folder Contents
Image sets for each sprite in the atlas.
Contents.json File (Optional)
Metadata, on-demand resource tags, App Slicing properties, and properties for the sprite atlas (Table 25-1).
Key |
Type |
Description |
---|---|---|
|
Dictionary |
Versioning information for the asset catalog. |
|
String |
The application that authored the asset catalog. |
|
Number |
The version of the asset catalog. |
|
Dictionary |
Properties for the sprite atlas. |
|
Slot component |
The compression used on the item. For the values, see compression-type in Image Set Type. |
|
Boolean |
Use the name of the atlas as a path element for accessing any sprites.
The name of the atlas is the portion of the folder name before |
|
Array of strings |
The on-demand resource tags for the sprite atlas. |
Sample Contents.json File
{
"properties" : {
"provides-namespace" : true
},
"info" : {
"author" : "com.developerName",
"version" : 1
}
}
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2018-04-09