Navigation
API > API/Plugins > API/Plugins/TakesCore
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool TakesUtils::CreateNewAssetPackage
(
FString& InPackageName, |
Creates a new Package with the given Package Name (ie: /Game/Test/Foo) of the specified AssetType. | TakesUtils.h | |
static bool TakesUtils::CreateNewAssetPackage
(
FString& InPackageName, |
TakesUtils.h |
TakesUtils::CreateNewAssetPackage(FString &, AssetType &, FText , AssetType , UClass )
Description
Creates a new Package with the given Package Name (ie: /Game/Test/Foo) of the specified AssetType. If a package already exists at that name the package name will have a number appended and iterated on until an unused package name is found. InPackageName will be modified in this case and will return the package name that the asset was actually created at.
You should consider calling MarkPackageDirty() on the returned asset if you further modify it, and you shouldstill notify the FAssetRegistryModule that the asset was created after this by calling FAssetRegistryModule::AssetCreated
| Name | TakesUtils::CreateNewAssetPackage |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/Takes/Source/TakesCore/Public/TakesUtils.h |
| Include Path | #include "TakesUtils.h" |
namespace TakesUtils
{
template<typename AssetType>
static bool TakesUtils::CreateNewAssetPackage
(
FString & InPackageName,
AssetType *& OutAsset,
FText * OutError,
AssetType * OptionalBase,
UClass * OptionalClass
)
}
True if the asset was created successfully, false if there was an error.
Parameters
| Name | Remarks |
|---|---|
| InPackageName | The desired package name (path and asset name) for the new asset. May be mutated by this function if that package name is already taken. |
| OutAsset | The resulting asset if we were able to successfully create an asset. |
| OutError | Human readable error string to describe what went wrong (if anything). Can be nullptr if you don't care about the error message. |
| OptionalBase | Optional asset reference to duplicate the new asset from. If nullptr a brand new asset will be created. |
TakesUtils::CreateNewAssetPackage(FString &, TObjectPtr< AssetType > &, FText , AssetType , UClass *)
| Name | TakesUtils::CreateNewAssetPackage |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/Takes/Source/TakesCore/Public/TakesUtils.h |
| Include Path | #include "TakesUtils.h" |
namespace TakesUtils
{
template<typename AssetType>
static bool TakesUtils::CreateNewAssetPackage
(
FString & InPackageName,
TObjectPtr < AssetType > & OutAsset,
FText * OutError,
AssetType * OptionalBase,
UClass * OptionalClass
)
}