RealDocs

UKismetArrayLibrary::Array_Identical

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

Description

Checks whether two arrays are memberwise identical — same length and equal elements at every index, in order.

Caveats & Gotchas

  • Order matters: two arrays with the same elements in a different order are not considered identical.
  • Displayed in Blueprint with CompactNodeTitle '==' and DisplayName 'Identical', which can be mistaken for a general-purpose equality operator rather than a memberwise array comparison.
  • ArrayTypeDependentParams ties ArrayB's element type to ArrayA's at the node level — the graph will not let you compare arrays of two different element types.

Signature

static bool Array_Identical(const TArray<int32>& ArrayA, const TArray<int32>& ArrayB);

Parameters

Name Type Description Default
ArrayA const TArray<int32>& One of the arrays to compare.
ArrayB const TArray<int32>& The other array to compare.

Return Type

bool

Example

Compare two arrays for equality C++
TArray<int32> A = {1, 2, 3};
TArray<int32> B = {1, 2, 3};
bool bSame = UKismetArrayLibrary::Array_Identical(A, B); // true

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.