Phaser API Documentation

  Version: 
setImage(texture)

Description:

Sets the image associated with this Tileset and updates the tile data (rows, columns, etc.).

Parameters:

name type description
texture Phaser.Textures.Texture

The image that contains the tiles.

Returns:
Description:

This Tileset object.

Examples:
Since: 3.0.0
Source: src/tilemaps/Tileset.js (Line 275)