Navigation
API > API/Runtime > API/Runtime/CoreUObject
A Message Log token that links to an object, with default behavior to link to the object in the content browser/scene.
| Name | FUObjectToken |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/UObjectToken.h |
| Include Path | #include "Misc/UObjectToken.h" |
Syntax
class FUObjectToken : public IMessageToken
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Private constructor | Misc/UObjectToken.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnGetDisplayName | TBaseDelegate_TwoParams< FText, const UObject *, bool > | Get the delegate for displaying the object name | Misc/UObjectToken.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultGetObjectDisplayName | FOnGetDisplayName | The default object name method, if any | Misc/UObjectToken.h |
| DefaultMessageTokenActivated | FOnMessageTokenActivated | The default activation method, if any | Misc/UObjectToken.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ObjectBeingReferenced | FWeakObjectPtr | An object being referenced by this token, if any | Misc/UObjectToken.h | |
| OriginalObjectPathName | FString | The original object Path Name as the object path name could be different when fetched later on | Misc/UObjectToken.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FWeakObjectPtr & GetObject() |
End IMessageToken interface Get the object referenced by this token | Misc/UObjectToken.h | |
const FString & GetOriginalObjectPathName() |
Get the original object Path Name as the object path name could be different when fetched later on | Misc/UObjectToken.h |
Overridden from IMessageToken
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FOnMessageTokenActivated & GetOnMessageTokenActivated() |
Misc/UObjectToken.h | ||
virtual EMessageToken::Type GetType() |
Begin IMessageToken interface | Misc/UObjectToken.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FUObjectToken > Create
(
const UObject* InObject, |
Factory method, tokens can only be constructed as shared refs | Misc/UObjectToken.h | |
static FOnGetDisplayName & DefaultOnGetObjectDisplayName() |
Misc/UObjectToken.h | ||
static FOnMessageTokenActivated & DefaultOnMessageTokenActivated() |
Get the delegate for default token activation | Misc/UObjectToken.h |