name | type | arguments | Default | description |
---|---|---|---|---|
key | string |
The key of the file. Must be unique within both the Loader and the Texture Manager. |
||
url | string | <optional> |
The absolute or relative URL to load the file from. |
|
extension | string | <optional> | 'png' |
The default file extension to use if no url is provided. |
normalMap | string | <optional> |
The filename of an associated normal map. It uses the same path and url to load as the image. |
|
frameConfig | Phaser.Types.Loader.FileTypes.ImageFrameConfig | <optional> |
The frame configuration object. |
|
xhrSettings | Phaser.Types.Loader.XHRSettingsObject | <optional> |
Extra XHR Settings specifically for this file. |