Phaser API Documentation

  Version: 
<static, private> JSONArray(texture, sourceIndex, json)

Description:

Parses a Texture Atlas JSON Array and adds the Frames to the Texture. JSON format expected to match that defined by Texture Packer, with the frames property containing an array of Frames.

Parameters:

name type description
texture Phaser.Textures.Texture

The Texture to add the Frames to.

sourceIndex number

The index of the TextureSource.

json object

The JSON data.

Returns:
Description:

The Texture modified by this parser.

Since: 3.0.0