IAssetTypeActions

AssetTypeActions provide actions and other information about asset types

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AssetTools

Header

/Engine/Source/Developer/AssetTools/Public/IAssetTypeActions.h

Include

#include "IAssetTypeActions.h"

Syntax

class IAssetTypeActions : public TSharedFromThis< IAssetTypeActions >

Remarks

AssetTypeActions provide actions and other information about asset types

Destructors

Name Description

Public function Virtual

~IAssetTypeActions()

Virtual destructor

Functions

Name Description

Public function

void

 

AssetsActivated

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

Performs asset type specific activation for the supplied assets.

Public function

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

void

 

BuildBackendFilter

(
    FARFilter& InFilter
)

Builds the filter for this class

Public function

bool

 

CanFilter()

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

Public function Const

bool

 

CanLocalize()

Returns true if this class can be localized

Public function Const

bool

 

CanMerge()

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

Public function

void

 

GetActions

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

Generates a menu section for the specified objects.

Public function

void

 

GetActions

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

Generates a menubuilder for the specified objects.

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

uint32

 

GetCategories()

Returns the categories that this asset type appears in.

Public function Const

EThumbnailPr...

 

GetDefaultThumbnailPrimitiveType

(
    UObject* Asset
)

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

Public function 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 Const

FText

 

GetName()

Returns the name of this type

Public function Const

FString

 

GetObjectDisplayName

(
    UObject* Object
)

Returns the display name for that object.

Public function Const

void

 

GetResolvedSourceFilePaths

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

Collects the resolved source paths for the imported assets

Public function Const

void

 

GetSourceFileLabels

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

Collects the source file labels for the imported assets

Public function 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 Const

UClass *

 

GetSupportedClass()

Get the supported class of this type.

Public function Const

UThumbnailIn...

 

GetThumbnailInfo

(
    UObject* Asset
)

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

Public function Const

TSharedPtr< ...

 

GetThumbnailOverlay

(
    const FAssetData& AssetData
)

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

Public function Const

FColor

 

GetTypeColor()

Returns the color associated with this type

Public function

TArray< FAss...

 

GetValidAssetsForPreviewOrEdit

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

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

Public function Const

bool

 

HasActions

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

Returns true if this class can supply actions for InObjects.

Public function Const

bool

 

IsImportedAsset()

Returns whether the asset was imported from an external source

Public function Const

bool

 

IsSupported()

Is this asset type supported in the current session?

Public function

void

 

Merge

(
    UObject* InObject
)

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

Public function

void

 

Merge

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

Begins a merge between the specified assets

Public function

void

 

OpenAssetEditor

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

Opens the asset editor for the specified objects.

Public function Const

void

 

PerformAssetDiff

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

Performs asset-specific diff on the supplied asset

Public function

void

 

SetSupported

(
    bool bInSupported
)

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

Public function

bool

 

ShouldForceWorldCentric()

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