Skip to main content
Version: Phaser v4.0.0-rc.6

Phaser.Loader.FileTypesManager

Scope: static

Source: src/loader/FileTypesManager.js#L9

Static functions

destroy

<static> destroy()

Description:

Removed all associated file types.

Source: src/loader/FileTypesManager.js#L50
Since: 3.0.0


install

<static> install(loader)

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:

nametypeoptionaldescription
loaderPhaser.Loader.LoaderPluginNoThe LoaderPlugin to install the types into.

Source: src/loader/FileTypesManager.js#L15
Since: 3.0.0


register

<static> register(key, factoryFunction)

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:

nametypeoptionaldescription
keystringNoThe key that will be used as the method name in the LoaderPlugin.
factoryFunctionfunctionNoThe function that will be called when LoaderPlugin.key is invoked.

Source: src/loader/FileTypesManager.js#L34
Since: 3.0.0