Navigation
API > API/Developer > API/Developer/AssetTools > API/Developer/AssetTools/IAssetTools
References
| Module | AssetTools |
| Header | /Engine/Source/Developer/AssetTools/Public/IAssetTools.h |
| Include | #include "IAssetTools.h" |
UObject &42; CreateAsset
&40;
const FString & AssetName,
const FString & PackagePath,
UClass &42; AssetClass,
UFactory &42; Factory,
FName CallingContext
&41;
Remarks
Creates an asset with the specified name, path, and factory the new asset or NULL if it fails
Parameters
| Name | Description |
|---|---|
| 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 |
| CallingContext | optional name of the module or method calling CreateAsset() - this is passed to the factory |