phaser/src/textures/events/ERROR_EVENT.js

22 lines
730 B
JavaScript
Raw Normal View History

/**
* @author Richard Davey <rich@photonstorm.com>
2023-01-02 17:36:27 +00:00
* @copyright 2013-2023 Photon Storm Ltd.
2019-05-10 15:15:04 +00:00
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Texture Load Error Event.
2022-02-28 14:29:51 +00:00
*
* 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.
2022-02-28 14:29:51 +00:00
*
* 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
2022-02-28 14:29:51 +00:00
*
* @param {string} key - The key of the Texture that failed to load into the Texture Manager.
*/
module.exports = 'onerror';