Navigation
API > API/Developer > API/Developer/AssetTools
References
| Module | AssetTools |
| Header | /Engine/Source/Developer/AssetTools/Public/IAssetTools.h |
| Include | #include "IAssetTools.h" |
Syntax
class IAssetTools
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AdvancedCopyPackages
(
const FAdvancedCopyParams& CopyParams, |
Copies files after the final set of maps of sources and destinations was confirmed | |
| bool | AdvancedCopyPackages
(
const TMap< FString, FString >& SourceAndDestPackages, |
Copies files after the flattened map of sources and destinations was confirmed | |
| bool | AllPassWritableFolderFilter
(
const TArray< FString >& InPaths |
Returns true if all in list pass writable folder filter | |
| bool | AssetUsesGenericThumbnail
(
const FAssetData& AssetData |
Returns true if the specified asset uses a stock thumbnail resource | |
| void | BeginAdvancedCopyPackages
(
const TArray< FName >& InputNamesToCopy, |
Copy packages and dependencies to another folder | |
| void | BeginAdvancedCopyPackages
(
const TArray< FName >& InputNamesToCopy, |
||
| bool | CanExportAssets
(
const TArray< FAssetData >& AssetsToExport |
Check if specified assets can be exported. | |
| bool | CanLocalize
(
const UClass* Class |
||
| void | ConvertVirtualTextures
(
const TArray< UTexture2D* >& Textures, |
Converts the given UTexture2D to virtual textures or converts virtual textures back to standard textures and updates the related UMaterials | |
| UObject * | Creates an asset with the specified name, path, and factory | ||
| void | CreateAssetsFrom
(
TConstArrayView< SourceObjectType* > SourceObjects, |
Creates one or more assets using the source objects as the basis for the next type. | |
| void | CreateAssetsFrom
(
TConstArrayView< UObject* > SourceObjects, |
Creates one or more assets using the source objects as the basis for the next type. | |
| UObject * | Opens an asset picker dialog and creates an asset with the specified name and path | ||
| UObject * | CreateAssetWithDialog
(
UClass* AssetClass, |
Opens an asset picker dialog and creates an asset with the path chosen in the dialog | |
| bool | CreateDiffProcess
(
const FString& DiffCommand, |
Attempt to spawn Diff tool as external process | |
| void | CreateUniqueAssetName
(
const FString& InBasePackageName, |
Creates a unique package and asset name taking the form InBasePackageName+InSuffix | |
| void | DiffAgainstDepot
(
UObject* InObject, |
Try to diff the local version of an asset against the latest one from the depot | |
| void | DiffAssets
(
UObject* OldAsset, |
Try and diff two assets using class-specific tool. | |
| FString | DumpAssetToTempFile
(
UObject* Asset |
Util for dumping an asset to a temporary text file. Returns absolute filename to temp file | |
| UObject * | DuplicateAsset
(
const FString& AssetName, |
Creates an asset with the specified name and path. Uses OriginalObject as the duplication source. | |
| UObject * | DuplicateAssetWithDialog
(
const FString& AssetName, |
Opens an asset picker dialog and creates an asset with the specified name and path. | |
| UObject * | DuplicateAssetWithDialogAndTitle
(
const FString& AssetName, |
Opens an asset picker dialog and creates an asset with the specified name and path. | |
| void | Expands any folders found in the files list, and returns a flattened list of destination paths and files. | ||
| void | ExportAssets
(
const TArray< UObject* >& AssetsToExport, |
Exports the specified objects to file. | |
| void | ExportAssets
(
const TArray< FString >& AssetsToExport, |
Exports the specified objects to file. | |
| void | ExportAssetsWithDialog
(
const TArray< UObject* >& AssetsToExport, |
Exports the specified objects to file. | |
| void | ExportAssetsWithDialog
(
const TArray< FString >& AssetsToExport, |
Exports the specified objects to file. | |
| EAssetTypeCategories::Type | FindAdvancedAssetCategory
(
FName CategoryKey |
Returns the allocated Category bit for a user-specified Category, or EAssetTypeCategories::Misc if it doesn't exist | |
| void | FindSoftReferencesToObject
(
FSoftObjectPath TargetObject, |
Returns list of objects that soft reference the given soft object path. | |
| void | FindSoftReferencesToObjects
(
const TArray< FSoftObjectPath >& TargetObjects, |
Returns list of objects that soft reference the given soft object paths. | |
| void | FixupReferencers
(
const TArray< UObjectRedirector* >& Objects, |
Fix up references to the specified redirectors. | |
| bool | Flattens the maps for each selected package into one complete map to pass to the final copy function while checking for collisions | ||
| void | GenerateAdvancedCopyDestinations
(
FAdvancedCopyParams& InParams, |
Given a set of packages to copy, generate the map of those packages to destination filenames | |
| IAssetTools & | Get () |
||
| void | GetAllAdvancedAssetCategories
(
TArray< FAdvancedAssetCategory >& OutCategoryList |
Returns the list of all advanced asset categories | |
| void | GetAllAdvancedCopySources
(
FName SelectedPackage, |
Find all the dependencies that also need to be copied in the advanced copy, mapping them to the file that depends on them and excluding any that don't pass the ARFilter stored on CopyParams | |
| TSet< EBlueprintType > & | Which BlueprintTypes are allowed to be created. An empty list should allow everything. | ||
| const TSharedRef< FPathPermissionList > & | GetAssetClassPathPermissionList
(
EAssetClassAction AssetClassAction |
Get asset class permission list for content browser and other systems | |
| TWeakPtr< IAssetTypeActions > | GetAssetTypeActionsForClass
(
const UClass* Class |
Gets the appropriate AssetTypeActions for the supplied class | |
| void | GetAssetTypeActionsList
(
TArray< TWeakPtr< IAssetTypeActions >>& OutAssetTypeActionsList |
Generates a list of currently registered AssetTypeActions | |
| TArray< TWeakPtr< IAssetTypeActions > > | GetAssetTypeActionsListForClass
(
const UClass* Class |
Gets the list of appropriate AssetTypeActions for the supplied class | |
| TWeakPtr< IClassTypeActions > | GetClassTypeActionsForClass
(
UClass* Class |
Gets the appropriate ClassTypeActions for the supplied class | |
| void | GetClassTypeActionsList
(
TArray< TWeakPtr< IClassTypeActions >>& OutClassTypeActionsList |
Generates a list of currently registered ClassTypeActions | |
| bool | Gets whether assets are being made externally referenceable or not | ||
| TSharedRef< FPathPermissionList > & | Get folder permission list for content browser and other systems | ||
| const TSharedRef< FNamePermissionList > & | Get extension permission list allowed for importer | ||
| TArray< UFactory * > | Find all supported asset factories. | ||
| UE::AssetTools::FOnPackageMigration & | Event called when some packages are migrated Note this is only true when AssetTools.UseNewPackageMigration is true | ||
| TOptional< FLinearColor > | GetTypeColor
(
const UClass* Class |
||
| TSharedRef< FPathPermissionList > & | Get writable folder permission list for content browser and other systems | ||
| TArray< UObject * > | Imports the specified files to the destination path. | ||
| TArray< UObject * > | ImportAssetsAutomated
(
const UAutomatedAssetImportData* ImportData |
Imports assets using data specified completely up front. | |
| TArray< UObject * > | ImportAssetsWithDialog
(
const FString& DestinationPath |
Opens a file open dialog to choose files to import to the destination path. | |
| void | ImportAssetsWithDialogAsync
(
const FString& DestinationPath |
Opens a file open dialog to choose files to import to the destination path. | |
| void | ImportAssetTasks
(
const TArray< UAssetImportTask* >& ImportTasks |
Imports assets using tasks specified. | |
| void | InitAdvancedCopyFromCopyParams
(
FAdvancedCopyParams CopyParams |
Given a complete set of copy parameters, which includes the selected package set, start the advanced copy process | |
| bool | IsAssetClassSupported
(
const UClass* AssetClass |
Is the given asset class supported? | |
| bool | Gets whether assets registry is still loading assets or not | ||
| bool | Returns whether redirectors are being fixed up. | ||
| bool | IsImportExtensionAllowed
(
const FString& Extension |
||
| bool | IsNameAllowed
(
const FString& Name, |
Returns true if IsNameAllowedDelegate is not set, or if the name passes the filter function | |
| void | MigratePackages
(
const TArray< FName >& PackageNamesToMigrate, |
Migrate packages and dependencies to another folder | |
| void | MigratePackages
(
const TArray< FName >& PackageNamesToMigrate |
Migrate packages to another game content folder | |
| void | Show notification that writable folder filter blocked an action | ||
| FAssetPostRenameEvent & | Event issued at the end of the rename process | ||
| void | OpenDiscoveringAssetsDialog
(
const FOnAssetsDiscovered& InOnAssetsDiscovered |
Opens a dialog asking the user to wait while assets are being discovered | |
| void | OpenEditorForAssets
(
const TArray< UObject* >& Assets |
Opens editor for assets | |
| EAssetTypeCategories::Type | RegisterAdvancedAssetCategory
(
FName CategoryKey, |
Allocates a Category bit for a user-defined Category, or EAssetTypeCategories::Misc if all available bits are allocated. | |
| void | RegisterAssetTypeActions
(
const TSharedRef< IAssetTypeActions >& NewActions |
Registers an asset type actions object so it can provide information about and actions for asset types. | |
| void | RegisterCanMigrateAsset
(
const FName OwnerName, |
Allow to add some restrictions to the assets that can be migrated | |
| void | RegisterClassTypeActions
(
const TSharedRef< IClassTypeActions >& NewActions |
Registers a class type actions object so it can provide information about and actions for class asset types. | |
| void | RegisterIsNameAllowedDelegate
(
const FName OwnerName, |
Allows setting of a global name filter that is applied to folders, assets, plugins, etc. | |
| bool | RenameAssets
(
const TArray< FAssetRenameData >& AssetsAndNames |
Renames assets using the specified names. | |
| EAssetRenameResult | RenameAssetsWithDialog
(
const TArray< FAssetRenameData >& AssetsAndNames, |
Renames assets using the specified names. | |
| void | RenameReferencingSoftObjectPaths
(
const TArray< UPackage* > PackagesToCheck, |
Function that renames all FSoftObjectPath object with the old asset path to the new one. | |
| void | SetCreateAssetsAsExternallyReferenceable
(
bool bValue |
Controls whether or not newly created assets are made externally referneceable or not | |
| void | SyncBrowserToAssets
(
const TArray< UObject* >& AssetsToSync |
Syncs the primary content browser to the specified assets, whether or not it is locked. | |
| void | SyncBrowserToAssets
(
const TArray< FAssetData >& AssetsToSync |
||
| void | UnregisterAssetTypeActions
(
const TSharedRef< IAssetTypeActions >& ActionsToRemove |
Unregisters an asset type actions object. | |
| void | UnregisterCanMigrateAsset
(
const FName OwnerName |
||
| void | UnregisterClassTypeActions
(
const TSharedRef< IClassTypeActions >& ActionsToRemove |
Unregisters a class type actions object. | |
| void | UnregisterIsNameAllowedDelegate
(
const FName OwnerName |
Remove a previously-set global name filter | |
| bool | ValidateFlattenedAdvancedCopyDestinations
(
const TMap< FString, FString >& FlattenedPackagesAndDestinations |
Validate the destinations for advanced copy once the map has been flattened |
Typedefs
| Name | Description |
|---|---|
| FOnAssetsDiscovered |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FNamePermissionList > & | Pass in an EAssetClassAction instead of nothing |