Function loadUsd
-
loadUsd(
engine: EngineContext,
source: string | UsdBinaryInput,
options?: LoadUsdOptions,
): Promise<UsdAssetContainer>Parameters
- engine: EngineContext
Engine that will own GPU resources.
- source: string | UsdBinaryInput
Root layer URL, bytes, or Blob/File.
- options: LoadUsdOptions = {}
Runtime location, virtual supporting files, progress and cancellation.
Returns Promise<UsdAssetContainer>
A container whose resources can be released with disposeUsd.
- engine: EngineContext
Load a USD/USDA/USDC/USDZ asset with the shared OpenUSD WASM worker. Returns a scene-independent container for
addToScene(scene, result). Supply external layers and textures throughoptions.files; URLs are not crawled.