Phaser API Documentation

  Version: 
Filter
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Namespace: FileTypesManager
Phaser.Loader.FileTypesManager

Methods

<static> install(loader)
Focus
Focus

Description:

Static method called when a LoaderPlugin is created.

Loops through the local types object and injects all of them as properties into the LoaderPlugin instance.

Parameters:

name type description
loader Phaser.Loader.LoaderPlugin

The LoaderPlugin to install the types into.

Examples:
Since: 3.0.0
Focus
Focus
<static> register(key, factoryFunction)
Focus
Focus

Description:

Static method called directly by the File Types.

The key is a reference to the function used to load the files via the Loader, i.e. image.

Parameters:

name type description
key string

The key that will be used as the method name in the LoaderPlugin.

factoryFunction function

The function that will be called when LoaderPlugin.key is invoked.

Examples:
Since: 3.0.0
Focus
Focus
<static> destroy()
Focus
Focus

Description:

Removed all associated file types.

Examples:
Since: 3.0.0
Focus
Focus