Navigation
API > API/Editor > API/Editor/UnrealEd
Description
Creates an hyperlink to the source code or blueprint for a given class formatted however you need. Example "Edit {0}" (or a spacer if the link is unavailable for some reason)
| Name | FEditorClassUtils::GetSourceLinkFormatted |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/EditorClassUtils.h |
| Include Path | #include "EditorClassUtils.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorClassUtils.cpp |
namespace FEditorClassUtils
{
TSharedRef < SWidget > FEditorClassUtils::GetSourceLinkFormatted
(
const UClass * Class,
const TWeakObjectPtr < UObject > ObjectWeakPtr,
const FText & BlueprintFormat,
const FText & CodeFormat
)
}
Shared pointer to the constructed widget
Parameters
| Name | Remarks |
|---|---|
| Class | Class we want to build a link for |
| ObjectWeakPtr | Optional object to set blueprint debugging to in the case we are choosing a blueprint |
| BlueprintFormat | The text format for blueprint links |
| CodeFormat | The text format for C++ code file links |