loadRoot(path?: string): string
Sets the root for all subsequent resource urls.loadRoot("https://myassets.com/") loadSprite("bean", "sprites/bean.png") // will resolve to "https://myassets.com/sprites/bean.png"
loadRoot("https://myassets.com/") loadSprite("bean", "sprites/bean.png") // will resolve to "https://myassets.com/sprites/bean.png"
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Level
Plugins
Button Bindings