RealDocs

UKismetArrayLibrary::Array_Reverse

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

Description

Reverses the order of the elements in an array, in place.

Caveats & Gotchas

  • Mutates TargetArray directly rather than returning a new array — if you need the original order preserved elsewhere, copy it first.
  • This is not the same as sorting; it purely flips element order regardless of value.

Signature

static void Array_Reverse(UPARAM(ref) TArray<int32>& TargetArray);

Parameters

Name Type Description Default
TargetArray UPARAM(ref) TArray<int32>& The array to reverse. Passed by reference and mutated in place.

Return Type

void

Example

Reverse an array in place C++
TArray<int32> Values = { 1, 2, 3 };
UKismetArrayLibrary::Array_Reverse(Values);
// Values is now { 3, 2, 1 }

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.