Private
_cachedPrivate
_filePrivate
_loaderPrivate
_loadingPrivate
_loggerRest
...data: any[]Prints to stdout
with newline. Multiple arguments can be passed, with the
first used as the primary message and all additional used as substitution
values similar to printf(3)
(the arguments are all passed to util.format()
).
const count = 5;
console.log('count: %d', count);
// Prints: count: 5, to stdout
console.log('count:', count);
// Prints: count: 5, to stdout
See util.format()
for more information.
Optional
message: anyRest
...optionalParams: any[]v0.1.100
Protected
Optional
_rootReadonly
importersPrivate
_createPrivate
_getPrivate
_getPrivate
_isPrivate
_loadOptional
file: IFileOptional
onDownloadProgress: ((e) => void)Protected
_onProtected
_onProtected
_onProtected
_onProtected
_urlRest
...importers: IImporter[]Import single or multiple assets(like in case of zip files) from a path(url) or an IAsset.
Optional
assetOrPath: string | File | File[] | IAsset | IAsset[]The path or asset to import
Optional
options: ImportAssetOptionsOptions for the import
Optional
asset: IAssetOptional
onDownloadProgress: ((e) => void)Optional
file: FileOptional
onDownloadProgress: ((e) => void)Import multiple local files/blobs from a map of files, like when a local folder is loaded, or when multiple files are dropped.
Import a single asset from a path(url) or an IAsset.
Optional
asset: string | IAssetOptional
options: ImportAssetOptionsOptional
path: stringuse processRaw instead
Process the raw output from the loaders and return the updated/patched-objects.
Optional
path: stringOptional
path: stringRest
...importers: IImporter[]Generated using TypeDoc
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.