Phaser API Documentation

  Version: 
retryAttempts: number

Description:

The counter for the number of times to retry loading this file before it fails.

You can set this property value in the FileConfig object. If not present, this property is read from the LoaderPlugin.maxRetries property when this File instance is created.

You can set this value via the Game Config, or you can adjust the LoaderPlugin property at any point after the Loader has started. However, it will not apply to files that have already been added to the Loader, only those added after this value is changed.

Type:
number
Default: 2
Since: 3.85.0
Source: src/loader/File.js (Line 245)