Phaser API Documentation

  Version: 
cloneFrame(key, frame)

Description:

Takes a Texture key and Frame name and returns a clone of that Frame if found.

Parameters:

name type description
key string

The unique string-based key of the Texture.

frame string | number

The string or index of the Frame to be cloned.

Returns:
Description:

A Clone of the given Frame.

Since: 3.0.0