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.

Unreal Engine C++ API Reference > Editor > GraphEditor > SGraphPin

References

   
Module GraphEditor
Header /Engine/Source/Editor/GraphEditor/Public/SGraphPin.h
Include #include "SGraphPin.h"
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:


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library