Core API / resource paths
Resolve relative assets from one known base.
setPathPrefix() supplies a shared prefix for relative paths passed to load functions. It is useful when application data and referenced resources live below a common deployment or CDN base.
Path resolution
Keep resource references portable.
A relative asset path can remain unchanged in a format or application while deployment code supplies the location where that asset is served. The prefix is applied after aliases are resolved.
Set
Provide a prefix for relative load and save paths.
Resolve
Apply aliases first, then prepend the configured prefix.
Inspect
Read the current prefix with getPathPrefix().
Clear
Set an empty prefix when resolution should use the original path.
Detailed guide
Path prefix reference
The detailed reference covers resolvePath(), setPathPrefix(), getPathPrefix(), alias order, and relative versus absolute paths.
resolvePath(path : String) : String
Applies aliases and path prefix, in that order. Returns an updated path.
setPathPrefix(prefix : String)
This sets a path prefix that is automatically prepended to relative path names provided to load functions.
getPathPrefix() : String
Returns the current path prefix set by setPathPrefix.