Phaser API Documentation

  Version: 
PackFileConfig
Properties:
name type arguments Default description
key string

The key of the file. Must be unique within both the Loader and the JSON Cache.

url string | any <optional>

The absolute or relative URL to load the file from. Or can be a ready formed JSON object, in which case it will be directly processed.

extension string <optional> 'json'

The default file extension to use if no url is provided.

dataKey string <optional>

If specified instead of the whole JSON file being parsed, only the section corresponding to this property key will be added. If the property you want to extract is nested, use periods to divide it.

xhrSettings Phaser.Types.Loader.XHRSettingsObject <optional>

Extra XHR Settings specifically for this file.

Type:
object