Interface: IAssetImporter
Core-API.IAssetImporter
Hierarchy
IEventDispatcher<"onLoad"|"onProgress"|"onStop"|"onError"|"onStart"|"loaderCreate"|string>IDisposable↳
IAssetImporter
Implemented by
Properties
loadingManager
• loadingManager: any
processors
• processors: ObjectProcessorMap<TAssetTypes>
Methods
registerFile
▸ registerFile(path, file?): undefined | ILoader<any, any>
Parameters
| Name | Type |
|---|---|
path | string |
file? | IFile |
Returns
undefined | ILoader<any, any>
unregisterFile
▸ unregisterFile(path): void
Parameters
| Name | Type |
|---|---|
path | string |
Returns
void
processImported
▸ processImported(res, options): Promise<ISceneObject<any>[]>
Parameters
| Name | Type |
|---|---|
res | any |
options | ProcessImportedOptions |
Returns
Promise<ISceneObject<any>[]>
importAsset
▸ importAsset(asset?, options?): Promise<ISceneObject<any>[]>
Returns the object or undefined
Parameters
| Name | Type |
|---|---|
asset? | IAsset |
options? | ImportAssetOptions |
Returns
Promise<ISceneObject<any>[]>
importSingle
▸ importSingle<T>(asset?, options?): Promise<undefined | T>
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
asset? | IAsset |
options? | ImportAssetOptions |
Returns
Promise<undefined | T>
importFiles
▸ importFiles(files, onProgress?, options?): Promise<undefined | Map<string, ISceneObject<any>[]>>
Parameters
| Name | Type |
|---|---|
files | Map<string, IFile> |
onProgress? | (event: ProgressEvent<EventTarget>) => void |
options? | ImportFilesOptions |
Returns
Promise<undefined | Map<string, ISceneObject<any>[]>>
importPath
▸ importPath(path, options): Promise<ISceneObject<any>[]>
Parameters
| Name | Type |
|---|---|
path | string |
options | ImportAssetOptions |
Returns
Promise<ISceneObject<any>[]>