UKismetArrayLibrary::Array_Set

Given an array and an index, assigns the item to that array element

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 void Array_Set
(
    const TArray< int32 > & TargetArray,
    int32 Index,
    const int32 & Item,
    bool bSizeToFit
)

Remarks

Given an array and an index, assigns the item to that array element

Parameters

Parameter

Description

TargetArray

The array to perform the operation on

Index

The index to assign the item to

Item

The item to assign to the index of the array

bSizeToFit

If true, the array will expand if Index is greater than the current size of 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