Interface USDFileLoaderOptions
interface USDFileLoaderOptions {
dataUrl?: string;
files?: Readonly<Record<string, USDBinaryInput>>;
glueUrl?: string;
onComplete?: (diagnostics: USDImportDiagnostics) => void;
onLog?: (level: "error" | "warning" | "info", message: string) => void;
onProgress?: (progress: USDLoadProgress) => void;
resolveByFileName?: boolean;
rootFileName?: string;
wasmUrl?: string;
workerUrl?: string | URL;
}
dataUrl?: string;
files?: Readonly<Record<string, USDBinaryInput>>;
glueUrl?: string;
onComplete?: (diagnostics: USDImportDiagnostics) => void;
onLog?: (level: "error" | "warning" | "info", message: string) => void;
onProgress?: (progress: USDLoadProgress) => void;
resolveByFileName?: boolean;
rootFileName?: string;
wasmUrl?: string;
workerUrl?: string | URL;
}
Index
Properties
Optionaldata Url
dataUrl?: string
URL of the OpenUSD preloaded resource bundle.
Optionalfiles
Supporting layers, payloads, and textures keyed by virtual path in the same
virtual file system as rootFileName.
Optionalglue Url
glueUrl?: string
URL of the generated Emscripten JavaScript module.
Optionalon Complete
Called after extraction and Babylon.js object creation complete.
Optionalon Log
onLog?: (level: "error" | "warning" | "info", message: string) => void
Called for OpenUSD diagnostic messages.
Optionalon Progress
Called when the importer moves to a new processing phase.
Optionalresolve By File Name
resolveByFileName?: boolean
Enables conservative file-name fallback for unresolved absolute references. Defaults to true.
Optionalroot File Name
rootFileName?: string
Virtual path used to stage the root layer. Set this when supporting files need to resolve relative to a directory hierarchy.
Optionalwasm Url
wasmUrl?: string
URL of the OpenUSD WebAssembly binary.
Optionalworker Url
workerUrl?: string | URL
URL of the module worker. Defaults to the protocol-versioned worker hosted on the Babylon.js CDN.
Options for the OpenUSD scene loader.