UKismetArrayLibrary::Array_Find

Finds the index of the first instance of the item within the array

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 int32 Array_Find
(
    const TArray< int32 > & TargetArray,
    const int32 & ItemToFind
)

Remarks

Finds the index of the first instance of the item within the array

Returns

The index the item was found at, or -1 if not found

Parameters

Parameter

Description

TargetArray

The array to search for the item

ItemToFind

The item to look for

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