Phaser API Documentation

  Version: 
get([name])

Description:

Gets a Frame from this Texture based on either the key or the index of the Frame.

In a Texture Atlas Frames are typically referenced by a key. In a Sprite Sheet Frames are referenced by an index. Passing no value for the name returns the base texture.

Parameters:

name type arguments description
name string | number <optional>

The string-based name, or integer based index, of the Frame to get from this Texture.

Returns:
Description:

The Texture Frame.

Inherited from: Phaser.Textures.Texture#get
Examples:
Since: 3.0.0
Source: src/textures/Texture.js (Line 225)