Model loading · interface
UsdResult
What a .usda yields, in the shape every other reader in this directory returns.
Explained in Importing models.
interface UsdResultimport type { UsdResult } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
meshesreadonly | MeshData[] | |
materialsreadonly | DrftMaterial[] | One per mesh, by ordinal. |
texturesreadonly | AssetReference[] | |
warningsreadonly | string[] | |
declaredUpreadonlyoptional | UpAxis | upAxis from the stage metadata. USD writes "Y" or "Z" and defaults to Y. |
unitScalereadonly | number | metersPerUnit from the stage metadata, 1 when it says nothing. |