TArray::Init

Sets the size of the array, filling it with the given element.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Array.h

Include

#include "Containers/Array.h"

Syntax

void Init
(
    const ElementType & Element,
    SizeType Number
)

Remarks

Sets the size of the array, filling it with the given element.

Parameters

Parameter

Description

Element

The element to fill array with.

Number

The number of elements that the array should be able to contain after allocation.

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