FNodeTextCache

Constructing [FText](API\Runtime\Core\Internationalization\FText) strings every frame can be costly, so this struct provides a way to easily cache those strings (node title, tooptip, etc.) for reuse.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/EdGraph/EdGraphNodeUtils.h

Include

#include "EdGraph/EdGraphNodeUtils.h"

Syntax

struct FNodeTextCache

Remarks

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.

Constructors

Name Description

Public function

FNodeTextCache()

Functions

Name Description

Public function Const

void

 

Clear()

Public function Const

FText &

 

GetCachedText()

Public function Const

bool

 

IsOutOfDate

(
    const UEdGraphNode* InOwningNo...
)

Checks if the title is out of date

Public function Const

bool

 

IsOutOfDate

(
    const UEdGraphSchema* InSchema
)

Checks if the title is out of date

Public function Const

void

 

MarkDirty()

Public function Const

void

 

SetCachedText

(
    FText const& InText,
    const UEdGraphNode* InOwningNo...
)

Checks if the title is out of date

Public function Const

void

 

SetCachedText

(
    FText const& InText,
    const UEdGraphSchema* InSchema
)

Checks if the title is out of date

Operators

Name Description

Public function Const

 

operator FText &()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss