Navigation
API > API/Runtime > API/Runtime/Engine
Constructing FText strings every frame can be costly, so this struct provides a way to easily cache those strings (node title, tooptip, etc.) for reuse.
| Name | FNodeTextCache |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/EdGraph/EdGraphNodeUtils.h |
| Include Path | #include "EdGraph/EdGraphNodeUtils.h" |
Syntax
struct FNodeTextCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNodeTextCache() |
EdGraph/EdGraphNodeUtils.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedText | FText | Mutable so that SetCachedText() can remain const (callable by the node's GetNodeTitle() method) | EdGraph/EdGraphNodeUtils.h | |
| CacheRefreshID | int32 | ID to check if the title should be considered dirty due to outside conditions that may require the title to refresh | EdGraph/EdGraphNodeUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Clear() |
EdGraph/EdGraphNodeUtils.h | ||
FText & GetCachedText() |
EdGraph/EdGraphNodeUtils.h | ||
bool IsOutOfDate
(
const UEdGraphNode* InOwningNode |
Checks if the title is out of date | EdGraph/EdGraphNodeUtils.h | |
bool IsOutOfDate
(
const UEdGraphSchema* InSchema |
Checks if the title is out of date | EdGraph/EdGraphNodeUtils.h | |
void MarkDirty() |
EdGraph/EdGraphNodeUtils.h | ||
void SetCachedText
(
FText const& InText, |
Checks if the title is out of date | EdGraph/EdGraphNodeUtils.h | |
void SetCachedText
(
FText const& InText, |
Checks if the title is out of date | EdGraph/EdGraphNodeUtils.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator FText &() |
EdGraph/EdGraphNodeUtils.h |