RealDocs

UBlueprintInstancedStructLibrary::NotEqual_InstancedStruct

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

Description

Checks whether two FInstancedStructs differ in stored type or value, backing the "!=" compact node in Blueprint.

Caveats & Gotchas

  • This is simply the negation of EqualEqual_InstancedStruct — two instanced structs of different stored types always compare not-equal, even if neither currently holds meaningful data.
  • Defined inline in the header as `return A != B;`, so calling it from C++ is identical to writing the comparison directly.
  • As with the equality operator, the result depends on the contained UScriptStruct's own equality implementation.

Signature

static bool NotEqual_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

Check whether two instanced structs differ C++
FInstancedStruct A = FInstancedStruct::Make(FVector(1, 2, 3));
FInstancedStruct B = FInstancedStruct::Make(FVector(4, 5, 6));
bool bDiffers = UBlueprintInstancedStructLibrary::NotEqual_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.