UKismetArrayLibrary::Array_Swap

Swaps the elements at the specified positions in the specified array If the specified positions are equal, invoking this method leaves the array unchanged

Windows
MacOS
Linux

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

Syntax

static void Array_Swap
(
    const TArray< int32 > & TargetArray,
    int32 FirstIndex,
    int32 SecondIndex
)

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

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss