RealDocs

UKismetArrayLibrary::Array_Append

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

Description

Appends all elements of one array onto the end of another array in place.

Caveats & Gotchas

  • Displayed in Blueprint as 'Append Array' with CompactNodeTitle 'APPEND'.
  • SourceArray is left unmodified — only TargetArray is mutated; passing the same array as both parameters is not a documented or tested use case.
  • ArrayTypeDependentParams ties SourceArray's element type to TargetArray's — you cannot append an array of a different element type.

Signature

static void Array_Append(UPARAM(ref) TArray<int32>& TargetArray, const TArray<int32>& SourceArray);

Parameters

Name Type Description Default
TargetArray UPARAM(ref) TArray<int32>& The array to append the source array's elements onto. Mutated in place.
SourceArray const TArray<int32>& The array whose elements are appended to TargetArray.

Return Type

void

Example

Merge two arrays C++
TArray<int32> Combined = {1, 2, 3};
TArray<int32> Extra = {4, 5};
UKismetArrayLibrary::Array_Append(Combined, Extra); // Combined = {1,2,3,4,5}

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.