UKismetArrayLibrary::Array_AddUnique

Add item to array (unique)

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetArrayLibrary.h

Include

#include "Kismet/KismetArrayLibrary.h"

Syntax

static int32 Array_AddUnique
(
    const TArray< int32 > & TargetArray,
    const int32 & NewItem
)

Remarks

Add item to array (unique)

Returns

The index of the newly added item, or INDEX_NONE if the item is already present in the array

Parameters

Parameter

Description

TargetArray

The array to add item to

NewItem

The item to add to the array

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