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 &()

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback