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

#include <TokenizedMessage.h>

+ Inheritance diagram for FDynamicTextToken:

Public Member Functions

virtual EMessageToken::Type GetType () const override
 
virtual const FTextToText () const
 
const TAttribute< FText > & GetTextAttribute () const
 
 FDynamicTextToken (FPrivateToken, const TAttribute< FText > &InMessage)
 
- Public Member Functions inherited from IMessageToken
virtual ~IMessageToken ()
 
virtual const FOnMessageTokenActivatedGetOnMessageTokenActivated () 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 CORE_API TSharedRef< FDynamicTextTokenCreate (const TAttribute< FText > &InMessage)
 

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

Message token with a localized attribute text payload

Constructor & Destructor Documentation

◆ FDynamicTextToken()

FDynamicTextToken::FDynamicTextToken ( FPrivateToken  ,
const TAttribute< FText > &  InMessage 
)
inline

Private constructor

Member Function Documentation

◆ Create()

TSharedRef< FDynamicTextToken > FDynamicTextToken::Create ( const TAttribute< FText > &  InMessage)
static

Factory method, tokens can only be constructed as shared refs

◆ GetTextAttribute()

const TAttribute< FText > & FDynamicTextToken::GetTextAttribute ( ) const
inline

End IMessageToken interface

◆ GetType()

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

Begin IMessageToken interface

Implements IMessageToken.

◆ ToText()

virtual const FText & FDynamicTextToken::ToText ( ) const
inlinevirtual

Get a string representation of this token

Returns
a string representing this token

Reimplemented from IMessageToken.


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