Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Returns max of all array entries and the index at which it was found. Returns value of 0 and index of -1 if the supplied array is empty.
| Name | MaxOfIntArray |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include Path | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Private/KismetMathLibrary.cpp |
UFUNCTION (BlueprintPure, Category="Math|Integer")
static void MaxOfIntArray
(
const TArray < int32 > & IntArray,
int32 & IndexOfMaxValue,
int32 & MaxValue
)