RealDocs

UBlueprintInstancedStructLibrary::EqualEqual_InstancedStruct

function Engine Blueprint Since 5.0
#include "Kismet/BlueprintInstancedStructLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Checks whether two FInstancedStructs hold the same struct type and equal values, backing the "==" compact node in Blueprint.

Caveats & Gotchas

  • Equality requires both the stored UScriptStruct type and the underlying data to match — two instanced structs holding equal values of different types are not equal.
  • Struct comparison ultimately relies on the contained UScriptStruct's own equality behaviour (native operator== or CPF_IsPlainOldData memberwise compare); custom structs without proper equality support may compare in unexpected ways.
  • This is defined inline in the header, so calling it from C++ is identical to writing `A == B` directly on the FInstancedStructs.

Signature

static bool EqualEqual_InstancedStruct(UPARAM(Ref) const FInstancedStruct& A, UPARAM(Ref) const FInstancedStruct& B) { return A == B; }

Parameters

Name Type Description Default
A const FInstancedStruct& First instanced struct to compare.
B const FInstancedStruct& Second instanced struct to compare.

Return Type

bool

Example

Compare two instanced structs C++
FInstancedStruct A = FInstancedStruct::Make(FVector(1, 2, 3));
FInstancedStruct B = FInstancedStruct::Make(FVector(1, 2, 3));
bool bEqual = UBlueprintInstancedStructLibrary::EqualEqual_InstancedStruct(A, B); // true

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.