Scans a folder for USD files, previews their statistics, and imports them at runtime.
- Open
RuntimeImportBrowser.unityand enter Play mode. - Enter a folder or file path, or use the browse buttons.
- Select Scan to list the
.usd,.usda,.usdcand.usdzfiles in the folder. - Select a file, then Preview File to see its mesh and triangle counts.
- 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.
