Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1009 Bytes

File metadata and controls

15 lines (10 loc) · 1009 Bytes

Import Example

The Runtime USD Import Browser: folder, format and import options on the left, a scrollable list of scanned USD files with Select and Import buttons on the right

Scans a folder for USD files, previews their statistics, and imports them at runtime.

  1. Open RuntimeImportBrowser.unity and enter Play mode.
  2. Enter a folder or file path, or use the browse buttons.
  3. Select Scan to list the .usd, .usda, .usdc and .usdz files in the folder.
  4. Select a file, then Preview File to see its mesh and triangle counts.
  5. Select Import File or Import Selected.

To create a test file in the current folder, select Export Cube. To remove imported objects, select Clear Imported.

This sample uses UsdLibraryScanner.ScanFolder, UsdImporter.GetPreviewInfo and UsdImporter.Import. For details, see the User Manual.