loader.setBaseURL
setBaseURL(type: string, url: string) → {}
change the default baseURL for the given asset type.
(this will prepend the asset URL and must finish with a '/')
// change the base URL relative address for audio assets
me.loader.setBaseURL("audio", "data/audio/");
// change the base URL absolute address for all object types
me.loader.setBaseURL("*", "http://myurl.com/")
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
type | string |
"*", "audio", binary", "image", "json", "js", "tmx", "tsx" |
||
url | string |
<optional> |
"./" |
default base URL |
Type | Description |
---|