UKismetArrayLibrary::Array_IsValidIndex

Tests if IndexToTest is valid, i.e. greater than or equal to zero, and less than the number of elements in TargetArray.

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 bool Array_IsValidIndex
(
    const TArray< int32 > & TargetArray,
    int32 IndexToTest
)

Remarks

Tests if IndexToTest is valid, i.e. greater than or equal to zero, and less than the number of elements in TargetArray.

Returns

True if the Index is Valid, i.e. greater than or equal to zero, and less than the number of elements in TargetArray.

Parameters

Parameter

Description

TargetArray

Array to use for the IsValidIndex test

IndexToTest

The Index, that we want to test for being valid

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