Interface IAssetImporterEventMap

interface IAssetImporterEventMap {
    importFile: {
        error?: any;
        loadedBytes?: number;
        path: string;
        progress?: number;
        state: "error" | "downloading" | "done" | "adding";
        totalBytes?: number;
        type: "importFile";
    };
    importFiles: {
        files: Map<string, IFile>;
        state: "start" | "end";
        type: "importFiles";
    };
    loaderCreate: { loader: ILoader; type: "loaderCreate" };
    onError: { type: "onError"; url: string };
    onLoad: { type: "onLoad" };
    onProgress: {
        loaded: number;
        total: number;
        type: "onProgress";
        url: string;
    };
    onStart: { loaded: number; total: number; type: "onStart"; url: string };
    processRaw: {
        data: any;
        options: ProcessRawOptions;
        path?: string;
        type: "processRaw";
    };
    processRawStart: {
        data: any;
        options: ProcessRawOptions;
        path?: string;
        type: "processRawStart";
    };
}

Properties

importFile: {
    error?: any;
    loadedBytes?: number;
    path: string;
    progress?: number;
    state: "error" | "downloading" | "done" | "adding";
    totalBytes?: number;
    type: "importFile";
}
importFiles: {
    files: Map<string, IFile>;
    state: "start" | "end";
    type: "importFiles";
}
loaderCreate: { loader: ILoader; type: "loaderCreate" }
onError: { type: "onError"; url: string }

use the importFile event instead

onLoad: { type: "onLoad" }

use the importFile event instead

onProgress: { loaded: number; total: number; type: "onProgress"; url: string }

use the importFile event instead

onStart: { loaded: number; total: number; type: "onStart"; url: string }

use the importFile event instead

processRaw: {
    data: any;
    options: ProcessRawOptions;
    path?: string;
    type: "processRaw";
}
processRawStart: {
    data: any;
    options: ProcessRawOptions;
    path?: string;
    type: "processRawStart";
}