API

Interface LoadAssetContainerOptions

Defines options for LoadAssetContainerAsync.

interface LoadAssetContainerOptions {
    name?: string;
    onProgress?: (event: ISceneLoaderProgressEvent) => void;
    pluginExtension?: string;
    pluginOptions?: {
        [key: string]:
            | { enabled?: boolean; [key: string]: unknown }
            | undefined;
    };
    rootUrl?: string;
}

Hierarchy

  • ISceneLoaderOptions
    • LoadAssetContainerOptions
Index
name?: string

Defines the filename, if the data is binary

onProgress?: (event: ISceneLoaderProgressEvent) => void

A callback with a progress event for each file being loaded

pluginExtension?: string

The extension used to determine the plugin

pluginOptions?: {
    [key: string]: { enabled?: boolean; [key: string]: unknown } | undefined;
}

Defines options for the registered plugins

rootUrl?: string

A string that defines the root url for the scene and resources or the concatenation of rootURL and filename (e.g. http://example.com/test.glb)