Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UKismetArrayLibrary
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetArrayLibrary.h |
| Include | #include "Kismet/KismetArrayLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetArrayLibrary.cpp |
static void Array_Swap
&40;
const TArray< int32 > & TargetArray,
int32 FirstIndex,
int32 SecondIndex
&41;
Remarks
Swaps the elements at the specified positions in the specified array If the specified positions are equal, invoking this method leaves the array unchanged
Parameters
| Name | Description |
|---|---|
| TargetArray | The array to perform the operation on |
| FirstIndex | The index of one element to be swapped |
| SecondIndex | The index of the other element to be swapped |