Phaser API Documentation

  Version: 
addAtlasXML(key, source, data, [dataSource])

Description:

Adds a Texture Atlas to this Texture Manager, where the atlas data is given in the XML format.

Parameters:

name type arguments description
key string

The unique string-based key of the Texture.

source HTMLImageElement

The source Image element.

data object

The Texture Atlas XML data.

dataSource HTMLImageElement | HTMLCanvasElement | Array.<HTMLImageElement> | Array.<HTMLCanvasElement> <optional>

An optional data Image element.

Returns:
Description:

The Texture that was created, or null if the key is already in use.

Since: 3.7.0