Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UBlueprintSetLibrary
Description
Given a set and an index, returns a copy of the item found at that index. Index may differ from the order in which they were added. This function is implemented for the purpose of iterating sets by index.
| Name | Set_GetItemByIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintSetLibrary.h |
| Include Path | #include "Kismet/BlueprintSetLibrary.h" |
UFUNCTION (BlueprintPure, CustomThunk,
Meta=(DisplayName="Get Item By Index", CompactNodeTitle="GET ITEM BY INDEX", SetParam="TargetSet|Item", AutoCreateRefTerm="Item", BlueprintThreadSafe),
Category="Utilities|Set")
static void Set_GetItemByIndex
(
const TSet< int32 > & TargetSet,
int32 Index,
int32 & Item
)
A copy of the item stored at the index
Parameters
| Name | Remarks |
|---|---|
| TargetSet | The set to get an item from |
| Index | The index in the set to get an item from |