Interface LoadUsdOptions
interface LoadUsdOptions {
files?: Readonly<Record<string, UsdBinaryInput>>;
onLog?: (level: "error" | "info" | "warning", message: string) => void;
onProgress?: (progress: UsdProgress) => void;
resolveByFileName?: boolean;
rootFileName?: string;
runtimeBaseUrl?: string;
signal?: AbortSignal;
}
files?: Readonly<Record<string, UsdBinaryInput>>;
onLog?: (level: "error" | "info" | "warning", message: string) => void;
onProgress?: (progress: UsdProgress) => void;
resolveByFileName?: boolean;
rootFileName?: string;
runtimeBaseUrl?: string;
signal?: AbortSignal;
}
Index
Properties
Optionalfiles
Referenced layers, payloads and textures. Preserve their authored relative paths and case.
Optionalon Log
onLog?: (level: "error" | "info" | "warning", message: string) => void
Receives native OpenUSD diagnostics.
Optionalon Progress
Reports loading phases. Exceptions thrown by this callback reject the import.
Optionalresolve By File Name
resolveByFileName?: boolean
Allow conservative filename fallback for unresolved references. Default true.
Optionalroot File Name
rootFileName?: string
Relative virtual path of the root layer. Inferred from the URL or File when omitted.
Optionalruntime Base Url
runtimeBaseUrl?: string
Directory containing the shared protocol-v5 worker, glue, WASM and data files. Defaults to the Babylon.js CDN.
Optionalsignal
signal?: AbortSignal
Cancels fetching, extraction and materialization, releasing partial resources.
Configuration for loadUsd. Paths in
filesshare a virtual filesystem withrootFileName.