Navigation
API > API/Plugins > API/Plugins/DatasmithImporter > API/Plugins/DatasmithImporter/Utility > API/Plugins/DatasmithImporter/Utility/FDatasmithImporterUtils > API/Plugins/DatasmithImporter/Utility/FDatasmithImporterUtils/CanCreateAsset
References
| Module | DatasmithImporter |
| Header | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithImporterUtils.h |
| Include | #include "Utility/DatasmithImporterUtils.h" |
| Source | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/Utility/DatasmithImporterUtils.cpp |
static bool CanCreateAsset
(
const FString & AssetPathName,
const UClass * AssetClass,
FText & OutFailReason
)
Parameters
| Name | Description |
|---|---|
| AssetPathName | Full path name of the asset to create |
| AssetClass | Class of the asset to create |
| OutFailReason | Text containing explanation about failure Returns true if the asset can be safely created Given a path and a class, check if an existing asset with a different class would not prevent the creation of such asset. A special report is done for object redirector |