Skip to main content

Interface: IAssetImporter

Core-API.IAssetImporter

Hierarchy

  • IEventDispatcher<"onLoad" | "onProgress" | "onStop" | "onError" | "onStart" | "loaderCreate" | string>

  • IDisposable

    IAssetImporter

Implemented by

Properties

loadingManager

loadingManager: any

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:109


processors

processors: ObjectProcessorMap<TAssetTypes>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:113

Methods

registerFile

registerFile(path, file?): undefined | ILoader<any, any>

Parameters

NameType
pathstring
file?IFile

Returns

undefined | ILoader<any, any>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:110


unregisterFile

unregisterFile(path): void

Parameters

NameType
pathstring

Returns

void

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:111


processImported

processImported(res, options): Promise<ISceneObject<any>[]>

Parameters

NameType
resany
optionsProcessImportedOptions

Returns

Promise<ISceneObject<any>[]>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:114


importAsset

importAsset(asset?, options?): Promise<ISceneObject<any>[]>

Returns the object or undefined

Parameters

NameType
asset?IAsset
options?ImportAssetOptions

Returns

Promise<ISceneObject<any>[]>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:121


importSingle

importSingle<T>(asset?, options?): Promise<undefined | T>

Type parameters

Name
T

Parameters

NameType
asset?IAsset
options?ImportAssetOptions

Returns

Promise<undefined | T>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:122


importFiles

importFiles(files, onProgress?, options?): Promise<undefined | Map<string, ISceneObject<any>[]>>

Parameters

NameType
filesMap<string, IFile>
onProgress?(event: ProgressEvent<EventTarget>) => void
options?ImportFilesOptions

Returns

Promise<undefined | Map<string, ISceneObject<any>[]>>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:124


importPath

importPath(path, options): Promise<ISceneObject<any>[]>

Parameters

NameType
pathstring
optionsImportAssetOptions

Returns

Promise<ISceneObject<any>[]>

Defined in

webgi/src/extras/asset_manager/AssetManager.ts:126