FAssetTypeActions_Base

A base class for all AssetTypeActions.

Windows
MacOS
Linux

Inheritance Hierarchy

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 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

FText

 

GetDisplayNameFromAssetData

(
    const FAssetData& AssetData
)

Public function Virtual Const

TSharedPtr< ...

 

GetThumbnailOverlay

(
    const FAssetData& AssetData
)

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

void

 

AssetsActivated

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

Performs 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 Const

EThumbnailPr...

 

GetDefaultThumbnailPrimitiveType

(
    UObject* Asset
)

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

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

UThumbnailIn...

 

GetThumbnailInfo

(
    UObject* Asset
)

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

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

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

bool

 

ShouldForceWorldCentric()

References

Module

AssetTools

Header

Developer/AssetTools/Public/AssetTypeActions_Base.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback