FAssetTypeActions_Base

A base class for all AssetTypeActions.

Unreal Engine C++ API Reference > Developer > AssetTools

Inheritance Hierarchy

References

   
Module AssetTools
Header /Engine/Source/Developer/AssetTools/Public/AssetTypeActions_Base.h
Include #include "AssetTypeActions_Base.h"

Syntax

class FAssetTypeActions_Base : public [IAssetTypeActions](API\Developer\AssetTools\IAssetTypeActions)  

Remarks

A base class for all AssetTypeActions. Provides helper functions useful for many types. Deriving from this class is optional.

Functions

Type Name Description
void CreateUniqueAssetName ( const FString& InBasePackageName, const FString& InSuffix, FString& OutPackageName, FString& OutAssetName ) Creates a unique package and asset name taking the form InBasePackageName+InSuffix
FString DumpAssetToTempFile ( UObject* Asset ) Util for dumping an asset to a temporary text file. Returns absolute filename to temp file
TArray< T &#... GetTypedObjectPtrs ( const TArray< UObject* >& InO... )  
TArray< TSof... GetTypedSoftObjectPtrs ( const TArray< UObject* >& InO... )  
TArray< TWea... GetTypedWeakObjectPtrs ( const TArray< UObject* >& InO... ) Helper function to convert the input for GetActions to a list that can be used for delegates

Overridden from IAssetTypeActions

Type Name Description
bool AssetsActivatedOverride ( const TArray< UObject* >& InO..., EAssetTypeActivationMethod::Type Ac... ) Allows overriding asset activation to perform asset type specific activation for the supplied assets.
void BuildBackendFilter ( FARFilter& InFilter ) Builds the filter for this class
bool CanDuplicate ( const FAssetData& InAsset, FText* OutErrorMsg ) Returns true if this asset can be duplicated
bool CanFilter () Returns true if this class can be used as a filter in the content browser
bool CanLocalize () Returns true if this class can be localized
bool CanMerge () Returns true if this class can be merged (either manually or automatically)
bool CanRename ( const FAssetData& InAsset, FText* OutErrorMsg ) Returns true if this asset can be renamed
FText GetAssetDescription ( const FAssetData& AssetData ) Returns additional tooltip information for the specified asset, if it has any (otherwise return the null widget)
FText GetDisplayNameFromAssetData ( const FAssetData& AssetData ) Optionally gets a class display name for this asset (otherwise, returns empty text (e.g. `FText::GetEmpty()_)
FName GetFilterName () Returns name to use for filter in the content browser
const FSlate... GetIconBrush ( const FAssetData& InAssetData, const FName InClassName ) Returns icon brush unique for the given asset data. Returning null falls back to class icon brush.
FString GetObjectDisplayName ( UObject* Object ) Returns the display name for that object.
void GetResolvedSourceFilePaths ( const TArray< UObject* >& Typ..., TArray< FString >& OutSourceFilePa... ) Collects the resolved source paths for the imported assets
void GetSourceFileLabels ( const TArray< UObject* >& Typ..., TArray< FString >& OutSourceFileLa... ) Collects the source file labels for the imported assets
const TArray... GetSubMenus () Returns array of sub-menu names that this asset type is parented under in the Asset Creation Context Menu.
const FSlate... GetThumbnailBrush ( const FAssetData& InAssetData, const FName InClassName ) Returns thumbnail brush unique for the given asset data.
UThumbnailIn... GetThumbnailInfo ( UObject* Asset ) Returns the thumbnail info for the specified asset, if it has one.
TSharedPtr< ... GetThumbnailOverlay ( const FAssetData& AssetData ) Optionally returns a custom widget to overlay on top of this assets' thumbnail
TArray< FAss... GetValidAssetsForPreviewOrEdit ( TArrayView< const FAssetData > InAs..., bool bIsPreview ) Returns the set of asset data that is valid to load.
bool IsImportedAsset () Returns whether the asset was imported from an external source
void Merge ( UObject* InObject ) Begins a merge operation for InObject (automatically determines remote/base versions needed to resolve)
void Merge ( UObject* BaseAsset, UObject* RemoteAsset, UObject* LocalAsset, const FOnMergeResolved& Resolution... ) Begins a merge between the specified assets
void OpenAssetEditor ( const TArray< UObject* >& InO..., TSharedPtr< class IToolkitHost > Ed... ) Opens the asset editor for the specified objects.
void OpenAssetEditor ( const TArray< UObject* >& InO..., const EAssetTypeActivationOpenedMet..., TSharedPtr< IToolkitHost > EditWith... ) Opens the asset editor for the specified objects.
void PerformAssetDiff ( UObject* OldAsset, UObject* NewAsset, const FRevisionInfo& OldRevision, const FRevisionInfo& NewRevision ) Performs asset-specific diff on the supplied asset
bool ShouldForceWorldCentric ()  
bool SupportsOpenedMethod ( const EAssetTypeActivationOpenedMet... ) Does this asset support edit or view methods?

Deprecated Functions

Type Name Description
FTopLevelAss... GetClassPathName () Just call GetSupportedClass()->GetClassPathName();
EThumbnailPr... GetDefaultThumbnailPrimitiveType ( UObject* Asset ) When overriding GetThumbnailInfo, The default thumbnail primitive is now a property on USceneThumbnailInfoWithPrimitive. The default only applies to this thumbnail type, so it has been relocated as an implementation detail of it.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library