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 |
UFUNCTION (BlueprintCallable, CustomThunk,
Meta=(DisplayName="Set Array Elem", ArrayParm="TargetArray", ArrayTypeDependentParams="Item", AutoCreateRefTerm="Item"),
Category="Utilities|Array")
static void Array_Set
(
const TArray < int32 > & TargetArray,
int32 Index,
const int32 & Item,
bool bSizeToFit
)
Remarks
Given an array and an index, assigns the item to that array element
Parameters
| Name | Description |
|---|---|
| TargetArray | The array to perform the operation on |
| Index | The index to assign the item to |
| Item | The item to assign to the index of the array |
| bSizeToFit | If true, the array will expand if Index is greater than the current size of the array |