Navigation
API > API/Developer > API/Developer/AssetTools > API/Developer/AssetTools/IAssetTools
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CreateAssetAsync
(
const FString& AssetName, |
Creates an asset with the specified name, path, and factory asynchronously | IAssetTools.h |
|
| IAssetTools.h |
CreateAssetAsync(const FString &, const FString &, UClass , UFactory , FAssetCreateCompleteDynamic, FAssetCreateCancelledDynamic, FName)
Description
Creates an asset with the specified name, path, and factory asynchronously
| Name | CreateAssetAsync |
| Type | function |
| Header File | /Engine/Source/Developer/AssetTools/Public/IAssetTools.h |
| Include Path | #include "IAssetTools.h" |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Asset Tools")
virtual bool CreateAssetAsync
(
const FString & AssetName,
const FString & PackagePath,
UClass * AssetClass,
UFactory * Factory,
FAssetCreateCompleteDynamic OnComplete,
FAssetCreateCancelledDynamic OnCancelled,
FName CallingContext
)
the new asset or NULL if it fails
Parameters
| Name | Remarks |
|---|---|
| AssetName | the name of the new asset |
| PackagePath | the package that will contain the new asset |
| AssetClass | the class of the new asset |
| Factory | the factory that will build the new asset |
| OnComplete | called when the factory has successfully created the asset |
| OnCancelled | called if the asynchronous method is cancelled |
| CallingContext | optional name of the module or method calling CreateAsset() - this is passed to the factory |
CreateAssetAsync(const FString &, const FString &, UClass , UFactory , FAssetCreateComplete, FAssetCreateCancelled, FName)
| Name | CreateAssetAsync |
| Type | function |
| Header File | /Engine/Source/Developer/AssetTools/Public/IAssetTools.h |
| Include Path | #include "IAssetTools.h" |
bool CreateAssetAsync
(
const FString & AssetName,
const FString & PackagePath,
UClass * AssetClass,
UFactory * Factory,
FAssetCreateComplete OnComplete,
FAssetCreateCancelled OnCancelled,
FName CallingContext
)