SGraphPin::InvalidateGraphData

Called when ed graph data is cleared, indicating this widget can no longer safely access GraphPinObj Typically an [SGraphPin](API\Editor\GraphEditor\SGraphPin) is destroyed before the ed graph data is actually deleted but because [SWidget](API\Runtime\SlateCore\Widgets\SWidget) is reference counted we have had problems in the past with the [SGraphPin](API\Editor\GraphEditor\SGraphPin) (or Node) living unexpectedly long.

Windows
MacOS
Linux

References

Module

GraphEditor

Header

/Engine/Source/Editor/GraphEditor/Public/SGraphPin.h

Include

#include "SGraphPin.h"

Syntax

void InvalidateGraphData()

Remarks

Called when ed graph data is cleared, indicating this widget can no longer safely access GraphPinObj Typically an SGraphPin is destroyed before the ed graph data is actually deleted but because SWidget is reference counted we have had problems in the past with the SGraphPin (or Node) living unexpectedly long. If such a situation occurs the code attempting to own the SWidget should be demoted to a WeakPtr, but for added safety we track graph data invalidation here:

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