RealDocs

UKismetGuidLibrary::Invalidate_Guid

function Engine Blueprint Since unknown
#include "Kismet/KismetGuidLibrary.h"
Access: public Specifiers: staticBlueprintCallableBlueprintThreadSafe

Description

Resets a GUID to its default, invalid (all-zero) value in place.

Caveats & Gotchas

  • Mutates InGuid directly rather than returning a new value — the Blueprint node takes the GUID by reference (UPARAM(ref)), so it must be wired to a variable, not a literal.
  • There is no way to recover the previous value afterward; copy the GUID first if you still need the original.

Signature

static void Invalidate_Guid( UPARAM(ref) FGuid& InGuid );

Parameters

Name Type Description Default
InGuid UPARAM(ref) FGuid& GUID to reset to its default, invalid value. Passed by reference and mutated in place.

Return Type

void

Example

Reset a GUID before reassigning C++
FGuid SessionId = UKismetGuidLibrary::NewGuid();
UKismetGuidLibrary::Invalidate_Guid(SessionId);
check(!UKismetGuidLibrary::IsValid_Guid(SessionId));

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.