Class AssetImporter

Asset Importer

Utility class to import assets from local files, blobs, urls, etc. Used in AssetManager to import assets. Acts as a wrapper over three.js LoadingManager and adds support for dynamically loading loaders, caching assets, better event dispatching and file tracking.

Hierarchy

Implements

Constructors

Properties

_rootContext?: { path: string; rootUrl: string }
importers: IImporter[] = ...

Accessors

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T extends
          | "processRaw"
          | "onLoad"
          | "onProgress"
          | "onStop"
          | "onError"
          | "onStart"
          | "loaderCreate"
          | "importFile"
          | "importFiles"
          | "processRawStart"

    Parameters

    Returns void