FDatasmithImporterUtils::CanCreateAsset

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithImporterUtils.h

Include

#include "Utility/DatasmithImporterUtils.h"

Syntax

template<class ObjectType>
static bool CanCreateAsset
(
    const UPackage * Package,
    const FString & AssetName,
    FText & OutFailReason
)

Parameters

Parameter

Description

Package

Package to create the asset in

AssetName

The name of the asset to create

OutFailReason

Text containing explanation about failure Given a package, a name 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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss