Phaser API Documentation

  Version: 
getFrame(key, [frame])

Description:

Takes a Texture key and Frame name and returns a reference to that Frame, if found.

Parameters:

name type arguments description
key string

The unique string-based key of the Texture.

frame string | number <optional>

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

Returns:
Description:

A Texture Frame object.

Since: 3.0.0