Phaser API Documentation

  Version: 
has(name)

Description:

Checks to see if a Frame matching the given key exists within this Texture.

Parameters:

name type description
name string

The key of the Frame to check for.

Returns:
Description:

True if a Frame with the matching key exists in this Texture.

Type:
  • boolean
Inherited from: Phaser.Textures.Texture#has
Examples:
Since: 3.0.0
Source: src/textures/Texture.js (Line 210)