Navigation
API > API/Plugins > API/Plugins/USDExporter > API/Plugins/USDExporter/UMaterialExporterUsd
References
| Module | USDExporter |
| Header | /Engine/Plugins/Importers/USDImporter/Source/USDExporter/Public/MaterialExporterUSD.h |
| Include | #include "MaterialExporterUSD.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/USDExporter/Private/MaterialExporterUSD.cpp |
static bool ExportMaterial
&40;
const UMaterialInterface & Material,
const FUsdMaterialBakingOptions & Options,
const FFilePath & FilePath,
bool bReplaceIdentical,
bool bReExportIdenticalAssets,
bool bIsAutomated
&41;
Remarks
Exports a single material with given options to the target filepath as a UsdPreviewSurface USD asset. Whether the export was successful or not.
Parameters
| Name | Description |
|---|---|
| Material | Material to bake |
| Options | Options to use when baking |
| FilePath | Filepath of the destination file (e.g. "C:/MyFolder/Red.usda") |
| ReplaceIdentical | Whether to overwrite the destination file in case it already exists |
| bReExportIdenticalAssets | Whether to overwrite the destination file even if it already describes an up-to-date version of Material |
| bIsAutomated | Whether the export is being done by a script or not. Just used for analytics |