FAssetTypeActions_Base

A base class for all AssetTypeActions.

Windows
MacOS
Linux

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

Remarks

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

Functions

Name Description

Protected function Virtual Const

void

 

CreateUniqueAssetName

(
    const FString& InBasePackageName,
    const FString& InSuffix,
    FString& OutPackageName,
    FString& OutAssetName
)

Creates a unique package and asset name taking the form InBasePackageName+InSuffix

Protected function Virtual Const

FString

 

DumpAssetToTempFile

(
    UObject* Asset
)

Util for dumping an asset to a temporary text file. Returns absolute filename to temp file

Protected function Static

TArray< T &#...

 

GetTypedObjectPtrs

(
    const TArray< UObject* >& InO...
)

Protected function Static

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

Name Description

Public function Virtual

bool

 

AssetsActivatedOverride

(
    const TArray< UObject* >& InO...,
    EAssetTypeActivationMethod::Type Ac...
)

Allows overriding asset activation to perform asset type specific activation for the supplied assets.

Public function Virtual

void

 

BuildBackendFilter

(
    FARFilter& InFilter
)

Builds the filter for this class

Public function Virtual

bool

 

CanFilter()

Returns true if this class can be used as a filter in the content browser

Public function Virtual Const

bool

 

CanLocalize()

Returns true if this class can be localized

Public function Virtual Const

bool

 

CanMerge()

Returns true if this class can be merged (either manually or automatically)

Public function Virtual

void

 

GetActions

(
    const TArray< UObject* >& InO...,
    FMenuBuilder& MenuBuilder
)

Generates a menubuilder for the specified objects.

Public function Virtual

void

 

GetActions

(
    const TArray< UObject* >& InO...,
    FToolMenuSection& Section
)

Generates a menu section for the specified objects.

Protected function Virtual Const

FText

 

GetAssetDescription

(
    const FAssetData& AssetData
)

Returns additional tooltip information for the specified asset, if it has any (otherwise return the null widget)

Public function Virtual Const

EThumbnailPr...

 

GetDefaultThumbnailPrimitiveType

(
    UObject* Asset
)

Returns the default thumbnail type that should be rendered when rendering primitive shapes.

Public function Virtual Const

FText

 

GetDisplayNameFromAssetData

(
    const FAssetData& AssetData
)

Optionally gets a class display name for this asset (otherwise, returns empty text (e.g. `FText::GetEmpty()_)

Public function Virtual Const

FString

 

GetObjectDisplayName

(
    UObject* Object
)

Returns the display name for that object.

Public function Virtual Const

void

 

GetResolvedSourceFilePaths

(
    const TArray< UObject* >& Typ...,
    TArray< FString >& OutSourceFilePa...
)

Collects the resolved source paths for the imported assets

Public function Virtual Const

void

 

GetSourceFileLabels

(
    const TArray< UObject* >& Typ...,
    TArray< FString >& OutSourceFileLa...
)

Collects the source file labels for the imported assets

Public function Virtual Const

const TArray...

 

GetSubMenus()

Returns array of sub-menu names that this asset type is parented under in the Asset Creation Context Menu.

Public function Virtual Const

UThumbnailIn...

 

GetThumbnailInfo

(
    UObject* Asset
)

Returns the thumbnail info for the specified asset, if it has one.

Public function Virtual Const

TSharedPtr< ...

 

GetThumbnailOverlay

(
    const FAssetData& AssetData
)

Optionally returns a custom widget to overlay on top of this assets' thumbnail

Public function Virtual

TArray< FAss...

 

GetValidAssetsForPreviewOrEdit

(
    TArrayView< const FAssetData > InAs...,
    bool bIsPreview
)

Returns the set of asset data that is valid to load.

Public function Virtual Const

bool

 

HasActions

(
    const TArray< UObject* >& InO...
)

Returns true if this class can supply actions for InObjects.

Public function Virtual Const

bool

 

IsImportedAsset()

Returns whether the asset was imported from an external source

Public function Virtual Const

bool

 

IsSupported()

Is this asset type supported in the current session?

Public function Virtual

void

 

Merge

(
    UObject* InObject
)

Begins a merge operation for InObject (automatically determines remote/base versions needed to resolve)

Public function Virtual

void

 

Merge

(
    UObject* BaseAsset,
    UObject* RemoteAsset,
    UObject* LocalAsset,
    const FOnMergeResolved& Resolution...
)

Begins a merge between the specified assets

Public function Virtual

void

 

OpenAssetEditor

(
    const TArray< UObject* >& InO...,
    TSharedPtr< class IToolkitHost > Ed...
)

Opens the asset editor for the specified objects.

Public function Virtual Const

void

 

PerformAssetDiff

(
    UObject* OldAsset,
    UObject* NewAsset,
    const FRevisionInfo& OldRevision,
    const FRevisionInfo& NewRevision
)

Performs asset-specific diff on the supplied asset

Public function Virtual

void

 

SetSupported

(
    bool bInSupported
)

Sets whether or not this asset type is a supported type for this editor session.

Public function Virtual

bool

 

ShouldForceWorldCentric()

Deprecated Functions

Name Description

Public function Virtual

void

 

AssetsActivated

(
    const TArray< UObject* >& InO...,
    EAssetTypeActivationMethod::Type Ac...
)

Use AssetsActivatedOverride instead to provide any non-default behavior. Using AssetsActivatedOverride, you no longer need a call to FAssetTypeActions_Base::AssetsActivated.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss