SpriteAtlasLoadTask
Extends: FileLoadTask
Loads a packed sprite atlas: its .json (downloaded first if it's a URL), then every sheet it lists, decoded side by side like BitmapLoadTasks. Registers the atlas with the game once every sheet has loaded.
Properties
loader(BGE.AssetLoader) — Makes the sheets' downloads. Set by AssetLoader.downloadOptions(BGE.DownloadOptions) — Options for the sheets' downloads. Set by AssetLoader.
Constructor
new SpriteAtlasLoadTask(
game: BGE.Game,
atlasName: string,
path: string,
): SpriteAtlasLoadTaskParameters
game(BGE.Game)atlasName(string)path(string)
Instance Methods
loadFile(budgetMs: integer): boolean
Parameters
budgetMs(integer)
Returns
boolean
getFileProgress(): float
Returns
float
isDownloadedFileBad(): boolean
Returns
boolean
abort(): void
Returns
void