FScriptArrayHelper::ExpandForIndex

Expand the array, if needed, so that the given index is valid

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UnrealType.h

Include

#include "UObject/UnrealType.h"

Syntax

bool ExpandForIndex
(
    int32 Index
)

Remarks

Expand the array, if needed, so that the given index is valid

Returns

true if expansion was necessary NOTE: This is not a count, it is an INDEX, so the final count will be at least Index+1 this matches the usage.

Parameters

Parameter

Description

Index

index for the item that we want to ensure is 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