UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAssetDataToken Class Reference

#include <AssetDataToken.h>

+ Inheritance diagram for FAssetDataToken:

Public Member Functions

COREUOBJECT_API FAssetDataToken (FPrivateToken, const FAssetData &InAssetData, const FText &InLabelOverride)
 
virtual EMessageToken::Type GetType () const override
 
virtual const FOnMessageTokenActivatedGetOnMessageTokenActivated () const override
 
const FAssetDataGetAssetData () const
 
 DECLARE_DELEGATE_RetVal_TwoParams (FText, FOnGetDisplayName, const FAssetData &, bool)
 
- Public Member Functions inherited from IMessageToken
virtual ~IMessageToken ()
 
virtual const FTextToText () const
 
virtual TSharedRef< IMessageTokenOnMessageTokenActivated (FOnMessageTokenActivated InMessageTokenActivated)
 
- Public Member Functions inherited from TSharedFromThis< IMessageToken >
TSharedRef< IMessageToken, Mode > AsShared ()
 
TSharedRef< IMessageToken const, Mode > AsShared () const
 
TSharedRef< SubobjectType, Mode > AsSharedSubobject (SubobjectType *SubobjectPtr) const
 
TWeakPtr< IMessageToken, Mode > AsWeak ()
 
TWeakPtr< IMessageToken const, Mode > AsWeak () const
 
TWeakPtr< SubobjectType, Mode > AsWeakSubobject (SubobjectType *SubobjectPtr) const
 
void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const
 
void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const
 
UE_FORCEINLINE_HINT bool DoesSharedInstanceExist () const
 

Static Public Member Functions

static COREUOBJECT_API TSharedRef< FAssetDataTokenCreate (const FAssetData &AssetData, const FText &InLabelOverride=FText())
 
static FOnMessageTokenActivatedDefaultOnMessageTokenActivated ()
 
static FOnGetDisplayNameDefaultOnGetAssetDisplayName ()
 

Additional Inherited Members

- Protected Member Functions inherited from TSharedFromThis< IMessageToken >
 TSharedFromThis ()
 
 TSharedFromThis (TSharedFromThis const &)
 
UE_FORCEINLINE_HINT TSharedFromThisoperator= (TSharedFromThis const &)
 
 ~TSharedFromThis ()
 
- Static Protected Member Functions inherited from TSharedFromThis< IMessageToken >
static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 
static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 
- Protected Attributes inherited from IMessageToken
FOnMessageTokenActivated MessageTokenActivated
 
FText CachedText
 

Detailed Description

A Message Log token that links to an asset, allowing a hyperlink to navigate to an asset in the content browser or an actor in a level.

Constructor & Destructor Documentation

◆ FAssetDataToken()

FAssetDataToken::FAssetDataToken ( FPrivateToken  ,
const FAssetData InAssetData,
const FText InLabelOverride 
)

Private constructor (via FPrivateToken argument)

Member Function Documentation

◆ Create()

TSharedRef< FAssetDataToken > FAssetDataToken::Create ( const FAssetData AssetData,
const FText InLabelOverride = FText() 
)
static

Factory method, tokens can only be constructed as shared refs

◆ DECLARE_DELEGATE_RetVal_TwoParams()

FAssetDataToken::DECLARE_DELEGATE_RetVal_TwoParams ( FText  ,
FOnGetDisplayName  ,
const FAssetData ,
bool   
)

Get the delegate for displaying the asset name

◆ DefaultOnGetAssetDisplayName()

static FOnGetDisplayName & FAssetDataToken::DefaultOnGetAssetDisplayName ( )
inlinestatic

◆ DefaultOnMessageTokenActivated()

static FOnMessageTokenActivated & FAssetDataToken::DefaultOnMessageTokenActivated ( )
inlinestatic

Get the delegate for default token activation

◆ GetAssetData()

const FAssetData & FAssetDataToken::GetAssetData ( ) const
inline

End IMessageToken interface

◆ GetOnMessageTokenActivated()

const FOnMessageTokenActivated & FAssetDataToken::GetOnMessageTokenActivated ( ) const
overridevirtual

Get the activated delegate associated with this token, if any

Returns
a reference to the delegate

Reimplemented from IMessageToken.

◆ GetType()

virtual EMessageToken::Type FAssetDataToken::GetType ( ) const
inlineoverridevirtual

Begin IMessageToken interface

Implements IMessageToken.


The documentation for this class was generated from the following files: