interface IAssetImporter { cachedAssets: IAsset[]; loadingManager: LoadingManager; import<T extends ImportResult = ImportResult>( assetOrPath?: string | IAsset, options?: ImportAssetOptions, ): Promise<(
undefined | T)
[]>; importFiles( files: Map<string, IFile>, options?: ImportFilesOptions, ): Promise<undefined | Map<string, any[]>>; importSingle<T extends ImportResult = ImportResult>( asset?: string | IAsset, options?: ImportAssetOptions, ): Promise<undefined | T>; processRaw(res: any, options: ProcessRawOptions): Promise<any[]>; registerFile(path: string, file?: IFile): undefined | ILoader; unregisterFile(path: string): void;} Properties
Methods
importFiles
- importFiles(
files: Map<string, IFile>,
options?: ImportFilesOptions,
): Promise<undefined | Map<string, any[]>> Returns Promise<undefined | Map<string, any[]>>
processRaw
- processRaw(res: any, options: ProcessRawOptions): Promise<any[]>
Returns Promise<any[]>
registerFile
- registerFile(path: string, file?: IFile): undefined | ILoader
Parameters
- path: string
Optional
file: IFile
Returns undefined | ILoader
unregisterFile
- unregisterFile(path: string): void
Returns void
Import single or multiple assets(like in case of zip files) from a path(url) or an IAsset.