Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Description
Pad the array with default values to ensure that it is at least the specified length. Does nothing if Num() >= DesiredNum.
| Name | PadToNumDefaulted |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
SizeType PadToNumDefaulted
(
SizeType DesiredNum
)
The number of elements that were added to the array, or 0 if Num() >= DesiredNum.
Parameters
| Name | Remarks |
|---|---|
| DesiredNum | The desired number of elements that should exist in the array. |