If you want to append a URL before the path of any asset you can set this here.
Useful if allowing the asset base url to be configured outside of the game code.
Once a base URL is set it will affect every file loaded by the Loader from that point on. It does not change any file already being loaded. To reset it, call this method with no arguments.
name | type | arguments | description |
---|---|---|---|
url | string | <optional> |
The URL to use. Leave empty to reset. |
This Loader object.