Protected Optional_Protected_If true, imported assets are cached in memory(as js/three.js objects) and can be reused later. They will be cleared when dispose event is fired on the object or clearCache is called.
ReadonlyimportersStaticDummyStaticDummyStaticDummyStaticDummyProtected_Protected_Protected_Protected_Protected_Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Clear memory asset and loader cache. Browser cache and custom cache storage is not cleared with this.
Import single or multiple assets(like in case of zip files) from a path(url) or an IAsset.
OptionalassetOrPath: string | IAsset | File | IAsset[] | File[]The path or asset to import
Optionaloptions: ImportAssetOptionsOptions for the import
OptionalonDownloadProgress: (e: ProgressEvent) => voidOptionalisInternal: booleanOptionalasset: IAssetOptionalonDownloadProgress: (e: ProgressEvent) => voidOptionalisInternal: booleanOptionalfile: FileOptionalonDownloadProgress: (e: ProgressEvent) => voidImport multiple local files/blobs from a map of files, like when a local folder is loaded, or when multiple files are dropped.
OptionalonDownloadProgress: (e: ProgressEvent) => voidImport a single asset from a path(url) or an IAsset.
Optionalasset: string | IAsset | FileOptionaloptions: ImportAssetOptionsOptionalonDownloadProgress: (e: ProgressEvent) => voidOptionalisInternal: booleanOptionalpath: stringuse processRaw instead
Process the raw output from the loaders and return the updated/patched-objects.
Optionalpath: stringOptionalpath: stringRemove a file from the database and revoke the object url if it exists.
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.