Small World Engine API Reference - v0.78.00
    Preparing search index...

    Interface LoaderOptions

    Common configuration options for all resource loaders.

    interface LoaderOptions {
        assetManager?: AssetManager;
        basePath?: string;
    }

    Hierarchy (View Summary)

    Index
    assetManager?: AssetManager

    The AssetManager instance to fetch/cache resources through. Defaults to a fresh, private instance (not the deprecated process-wide singleton) -- pass RendererContext.assetManager to share a cache/baseUrl/headers with the rest of an engine instance.

    basePath?: string

    The base path to prepend to all resource URLs. Defaults to "".