phaser/src/textures/events/ERROR_EVENT.js
2024-02-19 17:12:24 +00:00

21 lines
725 B
JavaScript

/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2024 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Texture Load Error Event.
*
* This event is dispatched by the Texture Manager when a texture it requested to load failed.
* This only happens when base64 encoded textures fail. All other texture types are loaded via the Loader Plugin.
*
* Listen to this event from within a Scene using: `this.textures.on('onerror', listener)`.
*
* @event Phaser.Textures.Events#ERROR
* @type {string}
* @since 3.0.0
*
* @param {string} key - The key of the Texture that failed to load into the Texture Manager.
*/
module.exports = 'onerror';