Phaser API Documentation

prefix: string


An optional prefix that is automatically prepended to the start of every file key. If prefix was MENU. and you load an image with the key 'Background' the resulting key would be MENU.Background. You can set this directly, or call Loader.setPrefix(). It will then affect every file added to the Loader from that point on. It does not change any file already in the load queue.

Default: ''
Since: 3.7.0