Interface IAssetImporter

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;
}

Hierarchy

Implemented by

Properties

cachedAssets: IAsset[]
loadingManager: LoadingManager

Methods