Capítulo 210 de 859
A loader for the USD format (USD, USDA, USDC, USDZ).
Supports both ASCII (USDA) and binary (USDC) USD files, as well as USDZ archives containing either format.
const loader = new USDLoader();
const model = await loader.loadAsync( 'model.usdz' );
scene.add( model );
Constructor
| Signature |
|---|
new USDLoader( manager : LoadingManager ) |
Methods
| Method | Description |
|---|---|
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) | Starts loading from the given URL and passes the loaded USDZ asset to the onLoad() callback. |
| `.parse( buffer : ArrayBuffer | string, path : string, onLoad : function, onError : onErrorCallback ) : Group` |